Home | History | Annotate | Download | only in base

Lines Matching refs:guard_

660     : name_(name), guard_(guard) {
700 // guard_.AssertExclusiveHeld(self);
701 DCHECK_EQ(guard_.GetExclusiveOwnerTid(), SafeGetTid(self));
712 guard_.state_.Address(), cur_sequence) != -1;
727 guard_.AssertExclusiveHeld(self);
743 guard_.CheckSafeToWait(self);
749 guard_.AssertExclusiveHeld(self);
750 unsigned int old_recursion_count = guard_.recursion_count_;
754 guard_.num_contenders_++;
755 guard_.recursion_count_ = 1;
757 guard_.ExclusiveUnlock(self);
766 guard_.ExclusiveLock(self);
769 // We awoke and so no longer require awakes from the guard_'s unlock.
770 CHECK_GE(guard_.num_contenders_.LoadRelaxed(), 0);
771 guard_.num_contenders_--;
773 uint64_t old_owner = guard_.exclusive_owner_;
774 guard_.exclusive_owner_ = 0;
775 guard_.recursion_count_ = 0;
776 CHECK_MUTEX_CALL(pthread_cond_wait, (&cond_, &guard_.mutex_));
777 guard_.exclusive_owner_ = old_owner;
779 guard_.recursion_count_ = old_recursion_count;
784 guard_.AssertExclusiveHeld(self);
785 guard_.CheckSafeToWait(self);
786 unsigned int old_recursion_count = guard_.recursion_count_;
792 guard_.num_contenders_++;
793 guard_.recursion_count_ = 1;
795 guard_.ExclusiveUnlock(self);
805 guard_.ExclusiveLock(self);
808 // We awoke and so no longer require awakes from the guard_'s unlock.
809 CHECK_GE(guard_.num_contenders_.LoadRelaxed(), 0);
810 guard_.num_contenders_--;
817 uint64_t old_owner = guard_.exclusive_owner_;
818 guard_.exclusive_owner_ = 0;
819 guard_.recursion_count_ = 0;
822 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts));
827 guard_.exclusive_owner_ = old_owner;
829 guard_.recursion_count_ = old_recursion_count;