Home | History | Annotate | Download | only in base

Lines Matching defs:self

160   void RegisterAsLocked(Thread* self);
161 void RegisterAsUnlocked(Thread* self);
162 void CheckSafeToWait(Thread* self);
223 void ExclusiveLock(Thread* self) ACQUIRE();
224 void Lock(Thread* self) ACQUIRE() { ExclusiveLock(self); }
227 bool ExclusiveTryLock(Thread* self) TRY_ACQUIRE(true);
228 bool TryLock(Thread* self) TRY_ACQUIRE(true) { return ExclusiveTryLock(self); }
231 void ExclusiveUnlock(Thread* self) RELEASE();
232 void Unlock(Thread* self) RELEASE() { ExclusiveUnlock(self); }
235 bool IsExclusiveHeld(const Thread* self) const;
238 void AssertExclusiveHeld(const Thread* self) ASSERT_CAPABILITY(this) {
240 CHECK(IsExclusiveHeld(self)) << *this;
243 void AssertHeld(const Thread* self) ASSERT_CAPABILITY(this) { AssertExclusiveHeld(self); }
246 void AssertNotHeldExclusive(const Thread* self) ASSERT_CAPABILITY(!*this) {
248 CHECK(!IsExclusiveHeld(self)) << *this;
251 void AssertNotHeld(const Thread* self) ASSERT_CAPABILITY(!*this) {
252 AssertNotHeldExclusive(self);
312 void ExclusiveLock(Thread* self) ACQUIRE();
313 void WriterLock(Thread* self) ACQUIRE() { ExclusiveLock(self); }
316 void ExclusiveUnlock(Thread* self) RELEASE();
317 void WriterUnlock(Thread* self) RELEASE() { ExclusiveUnlock(self); }
322 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns)
327 void SharedLock(Thread* self) ACQUIRE_SHARED() ALWAYS_INLINE;
328 void ReaderLock(Thread* self) ACQUIRE_SHARED() { SharedLock(self); }
331 bool SharedTryLock(Thread* self) SHARED_TRYLOCK_FUNCTION(true);
334 void SharedUnlock(Thread* self) RELEASE_SHARED() ALWAYS_INLINE;
335 void ReaderUnlock(Thread* self) RELEASE_SHARED() { SharedUnlock(self); }
338 bool IsExclusiveHeld(const Thread* self) const;
341 void AssertExclusiveHeld(const Thread* self) ASSERT_CAPABILITY(this) {
343 CHECK(IsExclusiveHeld(self)) << *this;
346 void AssertWriterHeld(const Thread* self) ASSERT_CAPABILITY(this) { AssertExclusiveHeld(self); }
349 void AssertNotExclusiveHeld(const Thread* self) ASSERT_CAPABILITY(!this) {
351 CHECK(!IsExclusiveHeld(self)) << *this;
354 void AssertNotWriterHeld(const Thread* self) ASSERT_CAPABILITY(!this) {
355 AssertNotExclusiveHeld(self);
359 bool IsSharedHeld(const Thread* self) const;
362 void AssertSharedHeld(const Thread* self) ASSERT_SHARED_CAPABILITY(this) {
364 // TODO: we can only assert this well when self != null.
365 CHECK(IsSharedHeld(self) || self == nullptr) << *this;
368 void AssertReaderHeld(const Thread* self) ASSERT_SHARED_CAPABILITY(this) {
369 AssertSharedHeld(self);
374 void AssertNotHeld(const Thread* self) ASSERT_SHARED_CAPABILITY(!this) {
376 CHECK(!IsSharedHeld(self)) << *this;
392 void HandleSharedLockContention(Thread* self, int32_t cur_state);
436 void TransitionFromRunnableToSuspended(Thread* self) UNLOCK_FUNCTION() ALWAYS_INLINE;
437 void TransitionFromSuspendedToRunnable(Thread* self) SHARED_LOCK_FUNCTION() ALWAYS_INLINE;
449 void Broadcast(Thread* self);
450 void Signal(Thread* self);
453 void Wait(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
454 bool TimedWait(Thread* self
458 void WaitHoldingLocks(Thread* self) NO_THREAD_SAFETY_ANALYSIS;
484 MutexLock(Thread* self, Mutex& mu) ACQUIRE(mu) : self_(self), mu_(mu) {
504 ReaderMutexLock(Thread* self, ReaderWriterMutex& mu) ACQUIRE(mu) :
505 self_(self), mu_(mu) {
526 WriterMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) :
527 self_(self), mu_(mu) {