Lines Matching refs:subtle
16 static subtle::Atomic32 CurrentThread() { in CurrentThread()
21 const subtle::Atomic32 atomic_thread_id = in CurrentThread()
22 static_cast<subtle::Atomic32>(current_thread_id); in CurrentThread()
31 subtle::Atomic32 current_thread_id = CurrentThread(); in EnterSelf()
33 int previous_value = subtle::NoBarrier_CompareAndSwap(&valid_thread_id_, in EnterSelf()
42 subtle::NoBarrier_AtomicIncrement(&counter_, 1); in EnterSelf()
46 subtle::Atomic32 current_thread_id = CurrentThread(); in Enter()
48 if (subtle::NoBarrier_CompareAndSwap(&valid_thread_id_, in Enter()
55 subtle::NoBarrier_AtomicIncrement(&counter_, 1); in Enter()
59 if (subtle::Barrier_AtomicIncrement(&counter_, -1) == 0) { in Leave()
60 subtle::NoBarrier_Store(&valid_thread_id_, 0); in Leave()