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.
7 lines
233 B
CMake
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)
|