commit | 07c00fff258b31ff36f3c8c14d0f3e8a2278917b | [log] [tgz] |
---|---|---|
author | Christopher Friedt <chrisfriedt@gmail.com> | Wed Feb 02 13:35:09 2022 -0500 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed Feb 09 22:16:45 2022 -0500 |
tree | 7f665bef275691c7354912a6ef453ec23c8961a5 | |
parent | e46be31600c62b5c4abf4043614a31f35ec7d7d1 [diff] |
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>