Lines Matching refs:guard_
911 : name_(name), guard_(guard) { in ConditionVariable()
950 DCHECK_EQ(guard_.GetExclusiveOwnerTid(), SafeGetTid(self)); in Broadcast()
968 guard_.state_and_contenders_.Address(), in RequeueWaiters()
980 guard_.AssertExclusiveHeld(self); in Signal()
989 guard_.CheckSafeToWait(self); in Wait()
995 guard_.AssertExclusiveHeld(self); in WaitHoldingLocks()
996 unsigned int old_recursion_count = guard_.recursion_count_; in WaitHoldingLocks()
1000 guard_.increment_contenders(); in WaitHoldingLocks()
1001 guard_.recursion_count_ = 1; in WaitHoldingLocks()
1003 guard_.ExclusiveUnlock(self); in WaitHoldingLocks()
1013 guard_.ExclusiveLock(self); in WaitHoldingLocks()
1017 CHECK_GT(guard_.get_contenders(), 0); in WaitHoldingLocks()
1018 guard_.decrement_contenders(); in WaitHoldingLocks()
1020 pid_t old_owner = guard_.GetExclusiveOwnerTid(); in WaitHoldingLocks()
1021 guard_.exclusive_owner_.store(0 /* pid */, std::memory_order_relaxed); in WaitHoldingLocks()
1022 guard_.recursion_count_ = 0; in WaitHoldingLocks()
1023 CHECK_MUTEX_CALL(pthread_cond_wait, (&cond_, &guard_.mutex_)); in WaitHoldingLocks()
1024 guard_.exclusive_owner_.store(old_owner, std::memory_order_relaxed); in WaitHoldingLocks()
1026 guard_.recursion_count_ = old_recursion_count; in WaitHoldingLocks()
1032 guard_.AssertExclusiveHeld(self); in TimedWait()
1033 guard_.CheckSafeToWait(self); in TimedWait()
1034 unsigned int old_recursion_count = guard_.recursion_count_; in TimedWait()
1040 guard_.increment_contenders(); in TimedWait()
1041 guard_.recursion_count_ = 1; in TimedWait()
1043 guard_.ExclusiveUnlock(self); in TimedWait()
1055 guard_.ExclusiveLock(self); in TimedWait()
1059 CHECK_GT(guard_.get_contenders(), 0); in TimedWait()
1060 guard_.decrement_contenders(); in TimedWait()
1067 pid_t old_owner = guard_.GetExclusiveOwnerTid(); in TimedWait()
1068 guard_.exclusive_owner_.store(0 /* pid */, std::memory_order_relaxed); in TimedWait()
1069 guard_.recursion_count_ = 0; in TimedWait()
1073 while ((rc = pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts)) == EINTR) { in TimedWait()
1083 guard_.exclusive_owner_.store(old_owner, std::memory_order_relaxed); in TimedWait()
1085 guard_.recursion_count_ = old_recursion_count; in TimedWait()