Lines Matching refs:Thread

48 class Thread;  variable
151 void RegisterAsLocked(Thread* self);
152 void RegisterAsUnlocked(Thread* self);
153 void CheckSafeToWait(Thread* self);
214 void ExclusiveLock(Thread* self) EXCLUSIVE_LOCK_FUNCTION();
215 void Lock(Thread* self) EXCLUSIVE_LOCK_FUNCTION() { ExclusiveLock(self); } in Lock()
218 bool ExclusiveTryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true);
219 bool TryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true) { return ExclusiveTryLock(self); } in TryLock()
222 void ExclusiveUnlock(Thread* self) UNLOCK_FUNCTION();
223 void Unlock(Thread* self) UNLOCK_FUNCTION() { ExclusiveUnlock(self); } in Unlock()
226 bool IsExclusiveHeld(const Thread* self) const;
229 void AssertExclusiveHeld(const Thread* self) { in AssertExclusiveHeld()
234 void AssertHeld(const Thread* self) { AssertExclusiveHeld(self); } in AssertHeld()
237 void AssertNotHeldExclusive(const Thread* self) { in AssertNotHeldExclusive()
242 void AssertNotHeld(const Thread* self) { AssertNotHeldExclusive(self); } in AssertNotHeld()
298 void ExclusiveLock(Thread* self) EXCLUSIVE_LOCK_FUNCTION();
299 void WriterLock(Thread* self) EXCLUSIVE_LOCK_FUNCTION() { ExclusiveLock(self); } in WriterLock()
302 void ExclusiveUnlock(Thread* self) UNLOCK_FUNCTION();
303 void WriterUnlock(Thread* self) UNLOCK_FUNCTION() { ExclusiveUnlock(self); } in WriterUnlock()
308 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns)
313 void SharedLock(Thread* self) SHARED_LOCK_FUNCTION() ALWAYS_INLINE;
314 void ReaderLock(Thread* self) SHARED_LOCK_FUNCTION() { SharedLock(self); } in ReaderLock()
317 bool SharedTryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true);
320 void SharedUnlock(Thread* self) UNLOCK_FUNCTION() ALWAYS_INLINE;
321 void ReaderUnlock(Thread* self) UNLOCK_FUNCTION() { SharedUnlock(self); } in ReaderUnlock()
324 bool IsExclusiveHeld(const Thread* self) const;
327 void AssertExclusiveHeld(const Thread* self) { in AssertExclusiveHeld()
332 void AssertWriterHeld(const Thread* self) { AssertExclusiveHeld(self); } in AssertWriterHeld()
335 void AssertNotExclusiveHeld(const Thread* self) { in AssertNotExclusiveHeld()
340 void AssertNotWriterHeld(const Thread* self) { AssertNotExclusiveHeld(self); } in AssertNotWriterHeld()
343 bool IsSharedHeld(const Thread* self) const;
346 void AssertSharedHeld(const Thread* self) { in AssertSharedHeld()
352 void AssertReaderHeld(const Thread* self) { AssertSharedHeld(self); } in AssertReaderHeld()
356 void AssertNotHeld(const Thread* self) { in AssertNotHeld()
371 void HandleSharedLockContention(Thread* self, int32_t cur_state);
395 void Broadcast(Thread* self);
396 void Signal(Thread* self);
399 void Wait(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
400 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
404 void WaitHoldingLocks(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
430 explicit MutexLock(Thread* self, Mutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : self_(self), mu_(mu) { in MutexLock()
439 Thread* const self_;
450 explicit ReaderMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in ReaderMutexLock()
460 Thread* const self_;
472 explicit WriterMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in WriterMutexLock()
482 Thread* const self_;