Lines Matching refs:guard_

1025     : name_(name), guard_(guard) {  in ConditionVariable()
1064 DCHECK_EQ(guard_.GetExclusiveOwnerTid(), SafeGetTid(self)); in Broadcast()
1082 guard_.state_and_contenders_.Address(), in RequeueWaiters()
1094 guard_.AssertExclusiveHeld(self); in Signal()
1103 guard_.CheckSafeToWait(self); in Wait()
1109 guard_.AssertExclusiveHeld(self); in WaitHoldingLocks()
1110 unsigned int old_recursion_count = guard_.recursion_count_; in WaitHoldingLocks()
1114 guard_.increment_contenders(); in WaitHoldingLocks()
1115 guard_.recursion_count_ = 1; in WaitHoldingLocks()
1117 guard_.ExclusiveUnlock(self); in WaitHoldingLocks()
1127 guard_.ExclusiveLock(self); in WaitHoldingLocks()
1131 CHECK_GT(guard_.get_contenders(), 0); in WaitHoldingLocks()
1132 guard_.decrement_contenders(); in WaitHoldingLocks()
1134 pid_t old_owner = guard_.GetExclusiveOwnerTid(); in WaitHoldingLocks()
1135 guard_.exclusive_owner_.store(0 /* pid */, std::memory_order_relaxed); in WaitHoldingLocks()
1136 guard_.recursion_count_ = 0; in WaitHoldingLocks()
1137 CHECK_MUTEX_CALL(pthread_cond_wait, (&cond_, &guard_.mutex_)); in WaitHoldingLocks()
1138 guard_.exclusive_owner_.store(old_owner, std::memory_order_relaxed); in WaitHoldingLocks()
1140 guard_.recursion_count_ = old_recursion_count; in WaitHoldingLocks()
1146 guard_.AssertExclusiveHeld(self); in TimedWait()
1147 guard_.CheckSafeToWait(self); in TimedWait()
1148 unsigned int old_recursion_count = guard_.recursion_count_; in TimedWait()
1154 guard_.increment_contenders(); in TimedWait()
1155 guard_.recursion_count_ = 1; in TimedWait()
1157 guard_.ExclusiveUnlock(self); in TimedWait()
1169 guard_.ExclusiveLock(self); in TimedWait()
1173 CHECK_GT(guard_.get_contenders(), 0); in TimedWait()
1174 guard_.decrement_contenders(); in TimedWait()
1181 pid_t old_owner = guard_.GetExclusiveOwnerTid(); in TimedWait()
1182 guard_.exclusive_owner_.store(0 /* pid */, std::memory_order_relaxed); in TimedWait()
1183 guard_.recursion_count_ = 0; in TimedWait()
1187 while ((rc = pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts)) == EINTR) { in TimedWait()
1197 guard_.exclusive_owner_.store(old_owner, std::memory_order_relaxed); in TimedWait()
1199 guard_.recursion_count_ = old_recursion_count; in TimedWait()