[libc-commits] [libc] [libc] separate raw_rwlock and unix_rwlock to make it internally usable (PR #189773)
via libc-commits
libc-commits at lists.llvm.org
Tue Mar 31 21:07:57 PDT 2026
================
@@ -39,6 +41,29 @@ if(TARGET libc.src.__support.threads.${LIBC_TARGET_OS}.futex_utils)
libc.hdr.types.pid_t
)
+ add_header_library(
+ raw_rwlock
+ HDRS
+ raw_rwlock.h
+ COMPILE_OPTIONS
+ ${rwlock_default_spin_count}
+ ${monotonicity_flags}
+ DEPENDS
+ .raw_mutex
+ libc.src.__support.common
+ libc.src.__support.CPP.limits
+ )
+
+ add_header_library(
+ unix_rwlock
+ HDRS
+ unix_rwlock.h
+ DEPENDS
+ .raw_rwlock
+ libc.hdr.types.pid_t
+ libc.src.__support.threads.identifier
----------------
lntue wrote:
nit: alignment.
https://github.com/llvm/llvm-project/pull/189773
More information about the libc-commits
mailing list