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> |
||
|---|---|---|
| .. | ||
| getopt | ||
| clock.c | ||
| CMakeLists.txt | ||
| eventfd.c | ||
| fs.c | ||
| Kconfig | ||
| mqueue.c | ||
| nanosleep.c | ||
| pthread_barrier.c | ||
| pthread_common.c | ||
| pthread_cond.c | ||
| pthread_key.c | ||
| pthread_mutex.c | ||
| pthread_rwlock.c | ||
| pthread_sched.c | ||
| pthread.c | ||
| semaphore.c | ||
| sleep.c | ||
| timer.c | ||