ladybird/Libraries/LibSync/CMakeLists.txt
R-Goc 125b399a72 LibSync: Remove pthread from the RWLock interface
This commit removes any use of pthread.h from the RWLock header. It also
adds a win32 implementation of RWLock.

Support for interprocess RWLocks is left to a later PR.

Due to the API design of SRWLock the unlock methods must match the lock
method.
2026-05-08 18:58:35 -05:00

7 lines
233 B
CMake

if (WIN32)
set(SOURCES MutexWindows.cpp ConditionVariableWindows.cpp RWLockWindows.cpp)
else()
set(SOURCES MutexPOSIX.cpp ConditionVariablePOSIX.cpp RWLockPOSIX.cpp)
endif()
ladybird_lib(LibSync sync EXPLICIT_SYMBOL_EXPORT)