Lines Matching refs:self

108   void RegisterAsLocked(Thread* self);
110 void RegisterAsUnlocked(Thread* self);
111 void CheckSafeToWait(Thread* self);
180 void ExclusiveLock(Thread* self) ACQUIRE();
181 void Lock(Thread* self) ACQUIRE() { ExclusiveLock(self); } in Lock() argument
184 bool ExclusiveTryLock(Thread* self) TRY_ACQUIRE(true);
185 bool TryLock(Thread* self) TRY_ACQUIRE(true) { return ExclusiveTryLock(self); } in TryLock() argument
187 bool ExclusiveTryLockWithSpinning(Thread* self) TRY_ACQUIRE(true);
190 void ExclusiveUnlock(Thread* self) RELEASE();
191 void Unlock(Thread* self) RELEASE() { ExclusiveUnlock(self); } in Unlock() argument
194 ALWAYS_INLINE bool IsExclusiveHeld(const Thread* self) const;
197 ALWAYS_INLINE void AssertExclusiveHeld(const Thread* self) const ASSERT_CAPABILITY(this);
198 ALWAYS_INLINE void AssertHeld(const Thread* self) const ASSERT_CAPABILITY(this);
201 void AssertNotHeldExclusive(const Thread* self) ASSERT_CAPABILITY(!*this) { in AssertNotHeldExclusive() argument
203 CHECK(!IsExclusiveHeld(self)) << *this; in AssertNotHeldExclusive()
206 void AssertNotHeld(const Thread* self) ASSERT_CAPABILITY(!*this) { in AssertNotHeld() argument
207 AssertNotHeldExclusive(self); in AssertNotHeld()
307 void ExclusiveLock(Thread* self) ACQUIRE();
308 void WriterLock(Thread* self) ACQUIRE() { ExclusiveLock(self); } in WriterLock() argument
311 void ExclusiveUnlock(Thread* self) RELEASE();
312 void WriterUnlock(Thread* self) RELEASE() { ExclusiveUnlock(self); } in WriterUnlock() argument
317 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns)
322 void SharedLock(Thread* self) ACQUIRE_SHARED() ALWAYS_INLINE;
323 void ReaderLock(Thread* self) ACQUIRE_SHARED() { SharedLock(self); } in ReaderLock() argument
326 bool SharedTryLock(Thread* self) SHARED_TRYLOCK_FUNCTION(true);
329 void SharedUnlock(Thread* self) RELEASE_SHARED() ALWAYS_INLINE;
330 void ReaderUnlock(Thread* self) RELEASE_SHARED() { SharedUnlock(self); } in ReaderUnlock() argument
333 ALWAYS_INLINE bool IsExclusiveHeld(const Thread* self) const;
336 ALWAYS_INLINE void AssertExclusiveHeld(const Thread* self) const ASSERT_CAPABILITY(this);
337 ALWAYS_INLINE void AssertWriterHeld(const Thread* self) const ASSERT_CAPABILITY(this);
340 void AssertNotExclusiveHeld(const Thread* self) ASSERT_CAPABILITY(!this) { in AssertNotExclusiveHeld() argument
342 CHECK(!IsExclusiveHeld(self)) << *this; in AssertNotExclusiveHeld()
345 void AssertNotWriterHeld(const Thread* self) ASSERT_CAPABILITY(!this) { in AssertNotWriterHeld() argument
346 AssertNotExclusiveHeld(self); in AssertNotWriterHeld()
350 bool IsSharedHeld(const Thread* self) const;
353 ALWAYS_INLINE void AssertSharedHeld(const Thread* self) ASSERT_SHARED_CAPABILITY(this) { in AssertSharedHeld() argument
356 CHECK(IsSharedHeld(self) || self == nullptr) << *this; in AssertSharedHeld()
359 ALWAYS_INLINE void AssertReaderHeld(const Thread* self) ASSERT_SHARED_CAPABILITY(this) { in AssertReaderHeld() argument
360 AssertSharedHeld(self); in AssertReaderHeld()
365 ALWAYS_INLINE void AssertNotHeld(const Thread* self) ASSERT_CAPABILITY(!this) { in AssertNotHeld() argument
367 CHECK(!IsExclusiveHeld(self)) << *this; in AssertNotHeld()
368 CHECK(!IsSharedHeld(self)) << *this; in AssertNotHeld()
387 void HandleSharedLockContention(Thread* self, int32_t cur_state);
432 void TransitionFromRunnableToSuspended(Thread* self) UNLOCK_FUNCTION() ALWAYS_INLINE;
433 void TransitionFromSuspendedToRunnable(Thread* self) SHARED_LOCK_FUNCTION() ALWAYS_INLINE;
446 void Broadcast(Thread* self);
448 void Signal(Thread* self);
451 void Wait(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
452 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
456 void WaitHoldingLocks(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
458 void CheckSafeToWait(Thread* self) NO_THREAD_SAFETY_ANALYSIS { in CheckSafeToWait() argument
460 guard_.CheckSafeToWait(self); in CheckSafeToWait()
490 MutexLock(Thread* self, Mutex& mu) ACQUIRE(mu) : self_(self), mu_(mu) { in MutexLock() argument
508 ALWAYS_INLINE ReaderMutexLock(Thread* self, ReaderWriterMutex& mu) ACQUIRE(mu);
522 WriterMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in WriterMutexLock() argument
523 self_(self), mu_(mu) { in WriterMutexLock()