zephyr/lib/posix
Christopher Friedt 07c00fff25 pthread: cond: fix pthread_cond_wait always returning ETIMEDOUT
It was noted that `pthread_cond_wait()` would always return
ETIMEDOUT, even when successful (and no timeout should ever
occur with `K_FOREVER`).

The z_sched_wake() / z_sched_wake_all() / z_sched_wait() API
are used here with a swap return value of 0 to indicate
success.

Fixes #41284

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
2022-02-09 22:16:45 -05:00
..
getopt lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
clock.c posix: Make clock_settime/gettime REALTIME thread-safe 2021-12-21 11:49:51 +01:00
CMakeLists.txt lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
eventfd.c
fs.c
Kconfig lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
mqueue.c
nanosleep.c
pthread_barrier.c posix: pthread: replace irq_lock with spinlock 2021-09-03 12:20:19 -04:00
pthread_common.c
pthread_cond.c pthread: cond: fix pthread_cond_wait always returning ETIMEDOUT 2022-02-09 22:16:45 -05:00
pthread_key.c
pthread_mutex.c posix: pthread: replace irq_lock with spinlock 2021-09-03 12:20:19 -04:00
pthread_rwlock.c
pthread_sched.c
pthread.c posix: pthread_exit: check for null before dereferencing 2021-05-27 09:07:57 -05:00
semaphore.c
sleep.c
timer.c