[libc-commits] [libc] [llvm] [libc][CndVar] reimplmement conditional variable with FIFO ordering (PR #192748)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Wed Apr 22 10:54:59 PDT 2026
================
@@ -30,6 +30,12 @@ class Mutex final : private RawMutex {
pid_t owner;
unsigned long long lock_count;
+ friend class PrivateCndVar;
+
+ LIBC_INLINE bool can_be_requeued() const {
+ return !this->pshared && !this->robust;
+ }
----------------
vonosmas wrote:
Nit: would you mind moving this accessor to the bottom, or at least after the constructor/init/destroy functions?
https://github.com/llvm/llvm-project/pull/192748
More information about the libc-commits
mailing list