• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:Thread

54 class Thread;  variable
109 void RegisterAsLocked(Thread* self, bool check = kDebugLocking);
110 void RegisterAsLockedImpl(Thread* self, LockLevel level, bool check);
112 void RegisterAsUnlocked(Thread* self);
113 void RegisterAsUnlockedImpl(Thread* self, LockLevel level);
115 void CheckSafeToWait(Thread* self);
184 void ExclusiveLock(Thread* self) ACQUIRE();
185 void Lock(Thread* self) ACQUIRE() { ExclusiveLock(self); } in Lock()
191 bool ExclusiveTryLock(Thread* self) TRY_ACQUIRE(true);
192 bool TryLock(Thread* self) TRY_ACQUIRE(true) { return ExclusiveTryLock(self); } in TryLock()
194 bool ExclusiveTryLockWithSpinning(Thread* self) TRY_ACQUIRE(true);
197 void ExclusiveUnlock(Thread* self) RELEASE();
198 void Unlock(Thread* self) RELEASE() { ExclusiveUnlock(self); } in Unlock()
201 ALWAYS_INLINE bool IsExclusiveHeld(const Thread* self) const;
204 ALWAYS_INLINE void AssertExclusiveHeld(const Thread* self) const ASSERT_CAPABILITY(this);
205 ALWAYS_INLINE void AssertHeld(const Thread* self) const ASSERT_CAPABILITY(this);
208 void AssertNotHeldExclusive(const Thread* self) ASSERT_CAPABILITY(!*this) { in AssertNotHeldExclusive()
213 void AssertNotHeld(const Thread* self) ASSERT_CAPABILITY(!*this) { in AssertNotHeld()
231 void DumpStack(Thread *self, uint64_t wait_start_ms, uint64_t try_times = 1);
233 static bool IsDumpFrequent(Thread *self, uint64_t try_times = 1);
253 void ExclusiveLockUncontendedFor(Thread* new_owner);
330 void ExclusiveLock(Thread* self) ACQUIRE();
331 void WriterLock(Thread* self) ACQUIRE() { ExclusiveLock(self); } in WriterLock()
334 void ExclusiveUnlock(Thread* self) RELEASE();
335 void WriterUnlock(Thread* self) RELEASE() { ExclusiveUnlock(self); } in WriterUnlock()
340 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns)
345 void SharedLock(Thread* self) ACQUIRE_SHARED() ALWAYS_INLINE;
346 void ReaderLock(Thread* self) ACQUIRE_SHARED() { SharedLock(self); } in ReaderLock()
349 bool SharedTryLock(Thread* self, bool check = kDebugLocking) SHARED_TRYLOCK_FUNCTION(true);
352 void SharedUnlock(Thread* self) RELEASE_SHARED() ALWAYS_INLINE;
353 void ReaderUnlock(Thread* self) RELEASE_SHARED() { SharedUnlock(self); } in ReaderUnlock()
356 ALWAYS_INLINE bool IsExclusiveHeld(const Thread* self) const;
359 ALWAYS_INLINE void AssertExclusiveHeld(const Thread* self) const ASSERT_CAPABILITY(this);
360 ALWAYS_INLINE void AssertWriterHeld(const Thread* self) const ASSERT_CAPABILITY(this);
363 void AssertNotExclusiveHeld(const Thread* self) ASSERT_CAPABILITY(!this) { in AssertNotExclusiveHeld()
368 void AssertNotWriterHeld(const Thread* self) ASSERT_CAPABILITY(!this) { in AssertNotWriterHeld()
373 bool IsSharedHeld(const Thread* self) const;
376 ALWAYS_INLINE void AssertSharedHeld(const Thread* self) ASSERT_SHARED_CAPABILITY(this) { in AssertSharedHeld()
382 ALWAYS_INLINE void AssertReaderHeld(const Thread* self) ASSERT_SHARED_CAPABILITY(this) { in AssertReaderHeld()
388 ALWAYS_INLINE void AssertNotHeld(const Thread* self) ASSERT_CAPABILITY(!this) { in AssertNotHeld()
410 void HandleSharedLockContention(Thread* self, int32_t cur_state);
454 friend class Thread;
455 void TransitionFromRunnableToSuspended(Thread* self) UNLOCK_FUNCTION() ALWAYS_INLINE;
456 void TransitionFromSuspendedToRunnable(Thread* self) SHARED_LOCK_FUNCTION() ALWAYS_INLINE;
469 void Broadcast(Thread* self);
471 void Signal(Thread* self);
474 void Wait(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
475 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
479 void WaitHoldingLocks(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
481 void CheckSafeToWait(Thread* self) NO_THREAD_SAFETY_ANALYSIS { in CheckSafeToWait()
513 MutexLock(Thread* self, Mutex& mu) ACQUIRE(mu) : self_(self), mu_(mu) { in MutexLock()
522 Thread* const self_;
543 ALWAYS_INLINE ReaderMutexLock(Thread* self, ReaderWriterMutex& mu) ACQUIRE(mu);
548 Thread* const self_;
557 WriterMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in WriterMutexLock()
567 Thread* const self_;