Lines Matching refs:self

145   void RegisterAsLocked(Thread* self);
146 void RegisterAsUnlocked(Thread* self);
147 void CheckSafeToWait(Thread* self);
208 void ExclusiveLock(Thread* self) EXCLUSIVE_LOCK_FUNCTION();
209 void Lock(Thread* self) EXCLUSIVE_LOCK_FUNCTION() { ExclusiveLock(self); } in Lock() argument
212 bool ExclusiveTryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true);
213 bool TryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true) { return ExclusiveTryLock(self); } in TryLock() argument
216 void ExclusiveUnlock(Thread* self) UNLOCK_FUNCTION();
217 void Unlock(Thread* self) UNLOCK_FUNCTION() { ExclusiveUnlock(self); } in Unlock() argument
220 bool IsExclusiveHeld(const Thread* self) const;
223 void AssertExclusiveHeld(const Thread* self) { in AssertExclusiveHeld() argument
225 CHECK(IsExclusiveHeld(self)) << *this; in AssertExclusiveHeld()
228 void AssertHeld(const Thread* self) { AssertExclusiveHeld(self); } in AssertHeld() argument
231 void AssertNotHeldExclusive(const Thread* self) { in AssertNotHeldExclusive() argument
233 CHECK(!IsExclusiveHeld(self)) << *this; in AssertNotHeldExclusive()
236 void AssertNotHeld(const Thread* self) { AssertNotHeldExclusive(self); } in AssertNotHeld() argument
292 void ExclusiveLock(Thread* self) EXCLUSIVE_LOCK_FUNCTION();
293 void WriterLock(Thread* self) EXCLUSIVE_LOCK_FUNCTION() { ExclusiveLock(self); } in WriterLock() argument
296 void ExclusiveUnlock(Thread* self) UNLOCK_FUNCTION();
297 void WriterUnlock(Thread* self) UNLOCK_FUNCTION() { ExclusiveUnlock(self); } in WriterUnlock() argument
302 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns)
307 void SharedLock(Thread* self) SHARED_LOCK_FUNCTION() ALWAYS_INLINE;
308 void ReaderLock(Thread* self) SHARED_LOCK_FUNCTION() { SharedLock(self); } in ReaderLock() argument
311 bool SharedTryLock(Thread* self) EXCLUSIVE_TRYLOCK_FUNCTION(true);
314 void SharedUnlock(Thread* self) UNLOCK_FUNCTION() ALWAYS_INLINE;
315 void ReaderUnlock(Thread* self) UNLOCK_FUNCTION() { SharedUnlock(self); } in ReaderUnlock() argument
318 bool IsExclusiveHeld(const Thread* self) const;
321 void AssertExclusiveHeld(const Thread* self) { in AssertExclusiveHeld() argument
323 CHECK(IsExclusiveHeld(self)) << *this; in AssertExclusiveHeld()
326 void AssertWriterHeld(const Thread* self) { AssertExclusiveHeld(self); } in AssertWriterHeld() argument
329 void AssertNotExclusiveHeld(const Thread* self) { in AssertNotExclusiveHeld() argument
331 CHECK(!IsExclusiveHeld(self)) << *this; in AssertNotExclusiveHeld()
334 void AssertNotWriterHeld(const Thread* self) { AssertNotExclusiveHeld(self); } in AssertNotWriterHeld() argument
337 bool IsSharedHeld(const Thread* self) const;
340 void AssertSharedHeld(const Thread* self) { in AssertSharedHeld() argument
343 CHECK(IsSharedHeld(self) || self == NULL) << *this; in AssertSharedHeld()
346 void AssertReaderHeld(const Thread* self) { AssertSharedHeld(self); } in AssertReaderHeld() argument
350 void AssertNotHeld(const Thread* self) { in AssertNotHeld() argument
352 CHECK(!IsSharedHeld(self)) << *this; in AssertNotHeld()
386 void Broadcast(Thread* self);
387 void Signal(Thread* self);
390 void Wait(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
391 void TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
395 void WaitHoldingLocks(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
421 explicit MutexLock(Thread* self, Mutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : self_(self), mu_(mu) { in MutexLock() argument
441 explicit ReaderMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in ReaderMutexLock() argument
442 self_(self), mu_(mu) { in ReaderMutexLock()
463 explicit WriterMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in WriterMutexLock() argument
464 self_(self), mu_(mu) { in WriterMutexLock()