mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
![]() 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 |