ladybird/Userland/Libraries/LibPthread
Gunnar Beutner a44ddc4793 LibPthread: Don't hold sem->mtx after sem_wait()/sem_trywait()
Semaphores with values greater than one didn't work because whoever
called sem_wait() first held the semaphore's mutex until a matching
sem_post() call.

Other callers then wouldn't be able to acquire the semaphore even
if the semaphore's value was still greater than zero at that point.
2021-04-15 09:31:49 +02:00
..
CMakeLists.txt LibPthread: Implement semaphore functions 2021-04-14 13:13:06 +02:00
pthread.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
pthread.h LibC+LibPthread: Implement pthread_atfork() 2021-02-15 17:32:56 +01:00
pthread_once.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
semaphore.cpp LibPthread: Don't hold sem->mtx after sem_wait()/sem_trywait() 2021-04-15 09:31:49 +02:00
semaphore.h LibPthread: Ensure we're not overflowing the semaphore's value 2021-04-15 09:31:49 +02:00