Home | History | Annotate | Download | only in base

Lines Matching refs:guard_

835     : name_(name), guard_(guard) {
873 // guard_.AssertExclusiveHeld(self);
874 DCHECK_EQ(guard_.GetExclusiveOwnerTid(), SafeGetTid(self));
885 guard_.state_.Address(), cur_sequence) != -1;
900 guard_.AssertExclusiveHeld(self);
916 guard_.CheckSafeToWait(self);
922 guard_.AssertExclusiveHeld(self);
923 unsigned int old_recursion_count = guard_.recursion_count_;
927 guard_.num_contenders_++;
928 guard_.recursion_count_ = 1;
930 guard_.ExclusiveUnlock(self);
951 guard_.ExclusiveLock(self);
954 // We awoke and so no longer require awakes from the guard_'s unlock.
955 CHECK_GE(guard_.num_contenders_.LoadRelaxed(), 0);
956 guard_.num_contenders_--;
958 uint64_t old_owner = guard_.exclusive_owner_;
959 guard_.exclusive_owner_ = 0;
960 guard_.recursion_count_ = 0;
961 CHECK_MUTEX_CALL(pthread_cond_wait, (&cond_, &guard_.mutex_));
962 guard_.exclusive_owner_ = old_owner;
964 guard_.recursion_count_ = old_recursion_count;
970 guard_.AssertExclusiveHeld(self);
971 guard_.CheckSafeToWait(self);
972 unsigned int old_recursion_count = guard_.recursion_count_;
978 guard_.num_contenders_++;
979 guard_.recursion_count_ = 1;
981 guard_.ExclusiveUnlock(self);
992 guard_.ExclusiveLock(self);
995 // We awoke and so no longer require awakes from the guard_'s unlock.
996 CHECK_GE(guard_.num_contenders_.LoadRelaxed(), 0);
997 guard_.num_contenders_--;
1004 uint64_t old_owner = guard_.exclusive_owner_;
1005 guard_.exclusive_owner_ = 0;
1006 guard_.recursion_count_ = 0;
1009 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts));
1016 guard_.exclusive_owner_ = old_owner;
1018 guard_.recursion_count_ = old_recursion_count;