Skip to content
Commit afae448f authored by Christopher Friedt's avatar Christopher Friedt Committed by Stephanos Ioannidis
Browse files

posix: pthread: take care with pthread cond resources



Previously, `pthread_cond_init()` could not actually fail, and
destroying condition variables was a no-op, and it was missing
in `pthread_exit()`.

However, with the change of `pthread_cond_t` to `uint32_t`, and
since those are embedded inside of `struct posix_thread` for the
time being, the pthread code needs to keep track that it is
relinquishes used condition variables when a thread completes.

Signed-off-by: default avatarChris Friedt <cfriedt@meta.com>
parent 1777a335
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment