Lines Matching refs:done

426     bool done = false;  in ExclusiveLock()  local
430 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveLock()
465 } while (!done); in ExclusiveLock()
491 bool done = false; in ExclusiveTryLock() local
496 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveTryLock()
500 } while (!done); in ExclusiveTryLock()
590 bool done = false; in ExclusiveUnlock() local
598 done = state_and_contenders_.CompareAndSetWeakRelease(cur_state, new_state); in ExclusiveUnlock()
599 if (LIKELY(done)) { // Spurious fail or waiters changed ? in ExclusiveUnlock()
622 } while (!done); in ExclusiveUnlock()
688 bool done = false; in ExclusiveLock() local
693 done = state_.CompareAndSetWeakAcquire(0 /* cur_state*/, -1 /* new state */); in ExclusiveLock()
713 } while (!done); in ExclusiveLock()
730 bool done = false; in ExclusiveUnlock() local
738 done = state_.CompareAndSetWeakSequentiallyConsistent(-1 /* cur_state*/, 0 /* new state */); in ExclusiveUnlock()
739 if (LIKELY(done)) { // Weak CAS may fail spuriously. in ExclusiveUnlock()
748 } while (!done); in ExclusiveUnlock()
759 bool done = false; in ExclusiveLockWithTimeout() local
766 done = state_.CompareAndSetWeakAcquire(0 /* cur_state */, -1 /* new state */); in ExclusiveLockWithTimeout()
796 } while (!done); in ExclusiveLockWithTimeout()
839 bool done = false; in SharedTryLock() local
844 done = state_.CompareAndSetWeakAcquire(cur_state, cur_state + 1); in SharedTryLock()
849 } while (!done); in SharedTryLock()
964 bool done = futex(sequence_.Address(), in RequeueWaiters() local
970 if (!done && errno != EAGAIN && errno != EINTR) { in RequeueWaiters()