Lines Matching refs:guard_
795 : name_(name), guard_(guard) { in ConditionVariable()
834 DCHECK_EQ(guard_.GetExclusiveOwnerTid(), SafeGetTid(self)); in Broadcast()
852 guard_.state_and_contenders_.Address(), in RequeueWaiters()
864 guard_.AssertExclusiveHeld(self); in Signal()
873 guard_.CheckSafeToWait(self); in Wait()
879 guard_.AssertExclusiveHeld(self); in WaitHoldingLocks()
880 unsigned int old_recursion_count = guard_.recursion_count_; in WaitHoldingLocks()
884 guard_.increment_contenders(); in WaitHoldingLocks()
885 guard_.recursion_count_ = 1; in WaitHoldingLocks()
887 guard_.ExclusiveUnlock(self); in WaitHoldingLocks()
908 guard_.ExclusiveLock(self); in WaitHoldingLocks()
912 CHECK_GT(guard_.get_contenders(), 0); in WaitHoldingLocks()
913 guard_.decrement_contenders(); in WaitHoldingLocks()
915 pid_t old_owner = guard_.GetExclusiveOwnerTid(); in WaitHoldingLocks()
916 guard_.exclusive_owner_.store(0 /* pid */, std::memory_order_relaxed); in WaitHoldingLocks()
917 guard_.recursion_count_ = 0; in WaitHoldingLocks()
918 CHECK_MUTEX_CALL(pthread_cond_wait, (&cond_, &guard_.mutex_)); in WaitHoldingLocks()
919 guard_.exclusive_owner_.store(old_owner, std::memory_order_relaxed); in WaitHoldingLocks()
921 guard_.recursion_count_ = old_recursion_count; in WaitHoldingLocks()
927 guard_.AssertExclusiveHeld(self); in TimedWait()
928 guard_.CheckSafeToWait(self); in TimedWait()
929 unsigned int old_recursion_count = guard_.recursion_count_; in TimedWait()
935 guard_.increment_contenders(); in TimedWait()
936 guard_.recursion_count_ = 1; in TimedWait()
938 guard_.ExclusiveUnlock(self); in TimedWait()
949 guard_.ExclusiveLock(self); in TimedWait()
953 CHECK_GT(guard_.get_contenders(), 0); in TimedWait()
954 guard_.decrement_contenders(); in TimedWait()
961 pid_t old_owner = guard_.GetExclusiveOwnerTid(); in TimedWait()
962 guard_.exclusive_owner_.store(0 /* pid */, std::memory_order_relaxed); in TimedWait()
963 guard_.recursion_count_ = 0; in TimedWait()
967 while ((rc = pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts)) == EINTR) { in TimedWait()
977 guard_.exclusive_owner_.store(old_owner, std::memory_order_relaxed); in TimedWait()
979 guard_.recursion_count_ = old_recursion_count; in TimedWait()