Lines Matching refs:guard_
660 : name_(name), guard_(guard) { in ConditionVariable()
701 DCHECK_EQ(guard_.GetExclusiveOwnerTid(), SafeGetTid(self)); in Broadcast()
712 guard_.state_.Address(), cur_sequence) != -1; in Broadcast()
727 guard_.AssertExclusiveHeld(self); in Signal()
743 guard_.CheckSafeToWait(self); in Wait()
749 guard_.AssertExclusiveHeld(self); in WaitHoldingLocks()
750 unsigned int old_recursion_count = guard_.recursion_count_; in WaitHoldingLocks()
754 guard_.num_contenders_++; in WaitHoldingLocks()
755 guard_.recursion_count_ = 1; in WaitHoldingLocks()
757 guard_.ExclusiveUnlock(self); in WaitHoldingLocks()
766 guard_.ExclusiveLock(self); in WaitHoldingLocks()
770 CHECK_GE(guard_.num_contenders_.LoadRelaxed(), 0); in WaitHoldingLocks()
771 guard_.num_contenders_--; in WaitHoldingLocks()
773 uint64_t old_owner = guard_.exclusive_owner_; in WaitHoldingLocks()
774 guard_.exclusive_owner_ = 0; in WaitHoldingLocks()
775 guard_.recursion_count_ = 0; in WaitHoldingLocks()
776 CHECK_MUTEX_CALL(pthread_cond_wait, (&cond_, &guard_.mutex_)); in WaitHoldingLocks()
777 guard_.exclusive_owner_ = old_owner; in WaitHoldingLocks()
779 guard_.recursion_count_ = old_recursion_count; in WaitHoldingLocks()
784 guard_.AssertExclusiveHeld(self); in TimedWait()
785 guard_.CheckSafeToWait(self); in TimedWait()
786 unsigned int old_recursion_count = guard_.recursion_count_; in TimedWait()
792 guard_.num_contenders_++; in TimedWait()
793 guard_.recursion_count_ = 1; in TimedWait()
795 guard_.ExclusiveUnlock(self); in TimedWait()
805 guard_.ExclusiveLock(self); in TimedWait()
809 CHECK_GE(guard_.num_contenders_.LoadRelaxed(), 0); in TimedWait()
810 guard_.num_contenders_--; in TimedWait()
817 uint64_t old_owner = guard_.exclusive_owner_; in TimedWait()
818 guard_.exclusive_owner_ = 0; in TimedWait()
819 guard_.recursion_count_ = 0; in TimedWait()
822 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts)); in TimedWait()
827 guard_.exclusive_owner_ = old_owner; in TimedWait()
829 guard_.recursion_count_ = old_recursion_count; in TimedWait()