Home
last modified time | relevance | path

Searched refs:kWriteLock (Results 1 – 1 of 1) sorted by relevance

/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.cc166 const uptr kWriteLock = 1; variable
216 if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock, in Lock()
222 if (atomic_compare_exchange_weak(&state_, &cmp, kWriteLock, in Lock()
234 uptr prev = atomic_fetch_sub(&state_, kWriteLock, memory_order_release); in Unlock()
236 DCHECK_NE(prev & kWriteLock, 0); in Unlock()
247 if ((prev & kWriteLock) == 0) in ReadLock()
251 if ((prev & kWriteLock) == 0) { in ReadLock()
263 DCHECK_EQ(prev & kWriteLock, 0); in ReadUnlock()
264 DCHECK_GT(prev & ~kWriteLock, 0); in ReadUnlock()