Searched refs:kWriterLock (Results 1 – 1 of 1) sorted by relevance
172 bool locked = (state & (kWriterLock | kReaderLockMask)) != 0; in Lock()175 new_state = (state | kWriterLock) & reset_mask; in Lock()214 if (UNLIKELY(state & (kWriterLock | kReaderLockMask))) in TryLock()218 &state_, &state, state | kWriterLock, memory_order_acquire))) { in TryLock()232 DCHECK_NE(state & kWriterLock, 0); in Unlock()234 new_state = state & ~kWriterLock; in Unlock()258 bool locked = (state & kWriterLock) != 0; in ReadLock()297 DCHECK_EQ(state & kWriterLock, 0); in ReadUnlock()317 CHECK(atomic_load(&state_, memory_order_relaxed) & kWriterLock); in CheckWriteLocked()365 static constexpr u64 kWriterLock = 1ull << (3 * kCounterWidth); variable