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
CMakeLists.txt lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
Kconfig lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
clock.c
eventfd.c
fs.c
mqueue.c
nanosleep.c
pthread.c
pthread_barrier.c
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
pthread_rwlock.c
pthread_sched.c
semaphore.c
sleep.c
timer.c