1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:07:46 +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:
Sergey Bugaev 2021-07-05 15:06:54 +03:00 committed by Andreas Kling
parent 5536f3c277
commit 00d8dbe739
4 changed files with 135 additions and 73 deletions

View file

@ -1,6 +1,7 @@
set(SOURCES
forward.cpp
pthread.cpp
pthread_cond.cpp
pthread_once.cpp
semaphore.cpp
)