Lines Matching refs:done
320 bool done = false; in ExclusiveLock() local
325 done = state_.CompareExchangeWeakAcquire(0 /* cur_state */, 1 /* new state */); in ExclusiveLock()
339 } while (!done); in ExclusiveLock()
363 bool done = false; in ExclusiveTryLock() local
368 done = state_.CompareExchangeWeakAcquire(0 /* cur_state */, 1 /* new state */); in ExclusiveTryLock()
372 } while (!done); in ExclusiveTryLock()
409 bool done = false; in ExclusiveUnlock() local
419 done = state_.CompareExchangeWeakSequentiallyConsistent(cur_state, 0 /* new state */); in ExclusiveUnlock()
420 if (LIKELY(done)) { // Spurious fail? in ExclusiveUnlock()
437 } while (!done); in ExclusiveUnlock()
496 bool done = false; in ExclusiveLock() local
501 done = state_.CompareExchangeWeakAcquire(0 /* cur_state*/, -1 /* new state */); in ExclusiveLock()
515 } while (!done); in ExclusiveLock()
532 bool done = false; in ExclusiveUnlock() local
542 … done = state_.CompareExchangeWeakSequentiallyConsistent(-1 /* cur_state*/, 0 /* new state */); in ExclusiveUnlock()
543 if (LIKELY(done)) { // Weak CAS may fail spuriously. in ExclusiveUnlock()
553 } while (!done); in ExclusiveUnlock()
564 bool done = false; in ExclusiveLockWithTimeout() local
571 done = state_.CompareExchangeWeakAcquire(0 /* cur_state */, -1 /* new state */); in ExclusiveLockWithTimeout()
595 } while (!done); in ExclusiveLockWithTimeout()
618 bool done = false; in SharedTryLock() local
623 done = state_.CompareExchangeWeakAcquire(cur_state, cur_state + 1); in SharedTryLock()
628 } while (!done); in SharedTryLock()
719 bool done = false; in Broadcast() local
724 done = futex(sequence_.Address(), FUTEX_CMP_REQUEUE, 0, in Broadcast()
727 if (!done) { in Broadcast()
732 } while (!done); in Broadcast()