• Home
  • Raw
  • Download

Lines Matching refs:Thread

48 class Thread;  variable
84 void RegisterAsLocked(Thread* self);
85 void RegisterAsUnlocked(Thread* self);
86 void CheckSafeToWait(Thread* self);
147 void ExclusiveLock(Thread* self) EXCLUSIVE_LOCK_FUNCTION();
148 void Lock(Thread* self) EXCLUSIVE_LOCK_FUNCTION() { ExclusiveLock(self); } in Lock()
151 bool ExclusiveTryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true);
152 bool TryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true) { return ExclusiveTryLock(self); } in TryLock()
155 void ExclusiveUnlock(Thread* self) UNLOCK_FUNCTION();
156 void Unlock(Thread* self) UNLOCK_FUNCTION() { ExclusiveUnlock(self); } in Unlock()
159 bool IsExclusiveHeld(const Thread* self) const;
162 void AssertExclusiveHeld(const Thread* self) { in AssertExclusiveHeld()
167 void AssertHeld(const Thread* self) { AssertExclusiveHeld(self); } in AssertHeld()
170 void AssertNotHeldExclusive(const Thread* self) { in AssertNotHeldExclusive()
175 void AssertNotHeld(const Thread* self) { AssertNotHeldExclusive(self); } in AssertNotHeld()
229 void ExclusiveLock(Thread* self) EXCLUSIVE_LOCK_FUNCTION();
230 void WriterLock(Thread* self) EXCLUSIVE_LOCK_FUNCTION() { ExclusiveLock(self); } in WriterLock()
233 void ExclusiveUnlock(Thread* self) UNLOCK_FUNCTION();
234 void WriterUnlock(Thread* self) UNLOCK_FUNCTION() { ExclusiveUnlock(self); } in WriterUnlock()
239 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns)
244 void SharedLock(Thread* self) SHARED_LOCK_FUNCTION() ALWAYS_INLINE;
245 void ReaderLock(Thread* self) SHARED_LOCK_FUNCTION() { SharedLock(self); } in ReaderLock()
248 bool SharedTryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true);
251 void SharedUnlock(Thread* self) UNLOCK_FUNCTION() ALWAYS_INLINE;
252 void ReaderUnlock(Thread* self) UNLOCK_FUNCTION() { SharedUnlock(self); } in ReaderUnlock()
255 bool IsExclusiveHeld(const Thread* self) const;
258 void AssertExclusiveHeld(const Thread* self) { in AssertExclusiveHeld()
263 void AssertWriterHeld(const Thread* self) { AssertExclusiveHeld(self); } in AssertWriterHeld()
266 void AssertNotExclusiveHeld(const Thread* self) { in AssertNotExclusiveHeld()
271 void AssertNotWriterHeld(const Thread* self) { AssertNotExclusiveHeld(self); } in AssertNotWriterHeld()
274 bool IsSharedHeld(const Thread* self) const;
277 void AssertSharedHeld(const Thread* self) { in AssertSharedHeld()
283 void AssertReaderHeld(const Thread* self) { AssertSharedHeld(self); } in AssertReaderHeld()
287 void AssertNotHeld(const Thread* self) { in AssertNotHeld()
321 void Broadcast(Thread* self);
322 void Signal(Thread* self);
325 void Wait(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
326 void TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
330 void WaitHoldingLocks(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
356 explicit MutexLock(Thread* self, Mutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : self_(self), mu_(mu) { in MutexLock()
365 Thread* const self_;
376 explicit ReaderMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in ReaderMutexLock()
386 Thread* const self_;
398 explicit WriterMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in WriterMutexLock()
408 Thread* const self_;