1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:47:44 +00:00

LibPthread: Implement named semaphores

Note that as part of this commit semaphore.cpp is excluded from the
DynamicLoader, as the dynamic loader does not build with pthread.cpp
which semaphore.cpp uses.
This commit is contained in:
Idan Horowitz 2022-07-14 03:31:12 +03:00 committed by Andreas Kling
parent 23f3857cdd
commit 01f0ae20b6
3 changed files with 179 additions and 10 deletions

View file

@ -26,7 +26,7 @@ if (ENABLE_UNDEFINED_SANITIZER)
endif()
# pthread requires thread local storage, which DynamicLoader does not have.
list(FILTER LIBC_SOURCES1 EXCLUDE REGEX ".*/LibC/pthread\\.cpp")
list(FILTER LIBC_SOURCES1 EXCLUDE REGEX ".*/LibC/(pthread|semaphore)\\.cpp")
add_definitions(-D_DYNAMIC_LOADER)