mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 16:40:59 +00:00
cc1ef6dadb
This feels like a pretty naive implementation, but I think it can work. Basically each waiter creates an object on its stack that is then added to a linked list inside by the pthread_cond_t. Signalling is then done by walking the list and unsetting the "waiting" flag on as many of the waiters as you like. |
||
---|---|---|
.. | ||
install.sh | ||
Makefile | ||
pthread.cpp | ||
pthread.h |