mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
LibPthread: Reimplement condition variables
This implementation features a fast path for pthread_cond_signal() and pthread_cond_broadcast() for the case there's no thread waiting, and does not exhibit the "thundering herd" issue in pthread_cond_broadcast(). Fixes https://github.com/SerenityOS/serenity/issues/8432
This commit is contained in:
parent
5536f3c277
commit
00d8dbe739
4 changed files with 135 additions and 73 deletions
|
@ -1,6 +1,7 @@
|
|||
set(SOURCES
|
||||
forward.cpp
|
||||
pthread.cpp
|
||||
pthread_cond.cpp
|
||||
pthread_once.cpp
|
||||
semaphore.cpp
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue