Lines Matching full:count
29 int count = lockCount_.load(std::memory_order_acquire); in LockRead() local
31 while (count == WRITE_LOCKED) { in LockRead()
33 count = lockCount_.load(std::memory_order_acquire); in LockRead()
35 } while (!lockCount_.compare_exchange_weak(count, count + 1, std::memory_order_release)); in LockRead()
40 …for (int count = 0; !lockCount_.compare_exchange_weak(count, WRITE_LOCKED, std::memory_order_relea… in LockWrite() local
41 count = 0) { in LockWrite()
48 int count = 0; in TryLockWrite() local
49 if (lockCount_.compare_exchange_weak(count, WRITE_LOCKED, std::memory_order_release)) { in TryLockWrite()
57 int count = lockCount_.load(std::memory_order_acquire); in TryLockRead() local
59 if (count == WRITE_LOCKED) { in TryLockRead()
62 } while (!lockCount_.compare_exchange_weak(count, count + 1, std::memory_order_release)); in TryLockRead()
68 int count = lockCount_.fetch_sub(1); in UnlockRead() local
69 if (count < 0) { //LCOV_EXCL_BR_LINE in UnlockRead()