Lines Matching refs:done

440     bool done = false;  in ExclusiveLock()  local
444 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveLock()
492 } while (!done); in ExclusiveLock()
569 bool done = false; in ExclusiveTryLock() local
574 done = state_and_contenders_.CompareAndSetWeakAcquire(cur_state, cur_state | kHeldMask); in ExclusiveTryLock()
578 } while (!done); in ExclusiveTryLock()
668 bool done = false; in ExclusiveUnlock() local
676 done = state_and_contenders_.CompareAndSetWeakRelease(cur_state, new_state); in ExclusiveUnlock()
677 if (LIKELY(done)) { // Spurious fail or waiters changed ? in ExclusiveUnlock()
700 } while (!done); in ExclusiveUnlock()
766 bool done = false; in ExclusiveLock() local
771 done = state_.CompareAndSetWeakAcquire(0 /* cur_state*/, -1 /* new state */); in ExclusiveLock()
791 } while (!done); in ExclusiveLock()
808 bool done = false; in ExclusiveUnlock() local
816 done = state_.CompareAndSetWeakSequentiallyConsistent(-1 /* cur_state*/, 0 /* new state */); in ExclusiveUnlock()
817 if (LIKELY(done)) { // Weak CAS may fail spuriously. in ExclusiveUnlock()
826 } while (!done); in ExclusiveUnlock()
837 bool done = false; in ExclusiveLockWithTimeout() local
844 done = state_.CompareAndSetWeakAcquire(0 /* cur_state */, -1 /* new state */); in ExclusiveLockWithTimeout()
874 } while (!done); in ExclusiveLockWithTimeout()
917 bool done = false; in SharedTryLock() local
922 done = state_.CompareAndSetWeakAcquire(cur_state, cur_state + 1); in SharedTryLock()
927 } while (!done); in SharedTryLock()
1042 bool done = futex(sequence_.Address(), in RequeueWaiters() local
1048 if (!done && errno != EAGAIN && errno != EINTR) { in RequeueWaiters()