aboutsummaryrefslogtreecommitdiff
path: root/libc/src/threads/linux/CndVar.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/threads/linux/CndVar.h')
-rw-r--r--libc/src/threads/linux/CndVar.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/src/threads/linux/CndVar.h b/libc/src/threads/linux/CndVar.h
index 535f729..b4afdef 100644
--- a/libc/src/threads/linux/CndVar.h
+++ b/libc/src/threads/linux/CndVar.h
@@ -19,7 +19,7 @@
#include <sys/syscall.h> // For syscall numbers.
#include <threads.h> // For values like thrd_success etc.
-namespace __llvm_libc {
+namespace LIBC_NAMESPACE {
struct CndVar {
enum CndWaiterStatus : uint32_t {
@@ -84,8 +84,8 @@ struct CndVar {
}
}
- __llvm_libc::syscall_impl<long>(FUTEX_SYSCALL_ID, &waiter.futex_word.val,
- FUTEX_WAIT, WS_Waiting, 0, 0, 0);
+ LIBC_NAMESPACE::syscall_impl<long>(FUTEX_SYSCALL_ID, &waiter.futex_word.val,
+ FUTEX_WAIT, WS_Waiting, 0, 0, 0);
// At this point, if locking |m| fails, we can simply return as the
// queued up waiter would have been removed from the queue.
@@ -109,7 +109,7 @@ struct CndVar {
qmtx.futex_word = FutexWordType(Mutex::LockState::Free);
- __llvm_libc::syscall_impl<long>(
+ LIBC_NAMESPACE::syscall_impl<long>(
FUTEX_SYSCALL_ID, &qmtx.futex_word.val, FUTEX_WAKE_OP, 1, 1,
&first->futex_word.val,
FUTEX_OP(FUTEX_OP_SET, WS_Signalled, FUTEX_OP_CMP_EQ, WS_Waiting));
@@ -126,7 +126,7 @@ struct CndVar {
// atomically update the waiter status to WS_Signalled before waking
// up the waiter. A dummy location is used for the other futex of
// FUTEX_WAKE_OP.
- __llvm_libc::syscall_impl<long>(
+ LIBC_NAMESPACE::syscall_impl<long>(
FUTEX_SYSCALL_ID, &dummy_futex_word, FUTEX_WAKE_OP, 1, 1,
&waiter->futex_word.val,
FUTEX_OP(FUTEX_OP_SET, WS_Signalled, FUTEX_OP_CMP_EQ, WS_Waiting));
@@ -141,6 +141,6 @@ static_assert(sizeof(CndVar) == sizeof(cnd_t),
"internal representation of condition variable and the public "
"cnd_t type.");
-} // namespace __llvm_libc
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_THREADS_LINUX_CNDVAR_H