• Home
  • Raw
  • Download

Lines Matching refs:guard_

674     : name_(name), guard_(guard) {  in ConditionVariable()
715 DCHECK_EQ(guard_.GetExclusiveOwnerTid(), SafeGetTid(self)); in Broadcast()
726 guard_.state_.Address(), cur_sequence) != -1; in Broadcast()
741 guard_.AssertExclusiveHeld(self); in Signal()
757 guard_.CheckSafeToWait(self); in Wait()
763 guard_.AssertExclusiveHeld(self); in WaitHoldingLocks()
764 unsigned int old_recursion_count = guard_.recursion_count_; in WaitHoldingLocks()
768 guard_.num_contenders_++; in WaitHoldingLocks()
769 guard_.recursion_count_ = 1; in WaitHoldingLocks()
771 guard_.ExclusiveUnlock(self); in WaitHoldingLocks()
780 guard_.ExclusiveLock(self); in WaitHoldingLocks()
784 CHECK_GE(guard_.num_contenders_.LoadRelaxed(), 0); in WaitHoldingLocks()
785 guard_.num_contenders_--; in WaitHoldingLocks()
787 uint64_t old_owner = guard_.exclusive_owner_; in WaitHoldingLocks()
788 guard_.exclusive_owner_ = 0; in WaitHoldingLocks()
789 guard_.recursion_count_ = 0; in WaitHoldingLocks()
790 CHECK_MUTEX_CALL(pthread_cond_wait, (&cond_, &guard_.mutex_)); in WaitHoldingLocks()
791 guard_.exclusive_owner_ = old_owner; in WaitHoldingLocks()
793 guard_.recursion_count_ = old_recursion_count; in WaitHoldingLocks()
798 guard_.AssertExclusiveHeld(self); in TimedWait()
799 guard_.CheckSafeToWait(self); in TimedWait()
800 unsigned int old_recursion_count = guard_.recursion_count_; in TimedWait()
806 guard_.num_contenders_++; in TimedWait()
807 guard_.recursion_count_ = 1; in TimedWait()
809 guard_.ExclusiveUnlock(self); in TimedWait()
819 guard_.ExclusiveLock(self); in TimedWait()
823 CHECK_GE(guard_.num_contenders_.LoadRelaxed(), 0); in TimedWait()
824 guard_.num_contenders_--; in TimedWait()
831 uint64_t old_owner = guard_.exclusive_owner_; in TimedWait()
832 guard_.exclusive_owner_ = 0; in TimedWait()
833 guard_.recursion_count_ = 0; in TimedWait()
836 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts)); in TimedWait()
841 guard_.exclusive_owner_ = old_owner; in TimedWait()
843 guard_.recursion_count_ = old_recursion_count; in TimedWait()