Lines Matching refs:mutex
17 #include "mutex.h"
24 #include "mutex-inl.h"
61 // A guard for all_mutexes_ that's not a mutex (Mutexes must CAS to acquire and busy wait).
87 explicit ScopedAllMutexesLock(const BaseMutex* mutex) : mutex_(mutex) {
88 while (!gAllMutexData->all_mutexes_guard.CompareExchangeWeakAcquire(0, mutex)) {
133 BaseMutex* mutex = *it;
134 if (mutex->HasEverContended()) {
135 mutex->Dump(os);
141 BaseMutex* mutex = *it;
142 if (!mutex->HasEverContended()) {
143 mutex->Dump(os);
157 << "Waiting on unacquired mutex: " << name_;
289 LOG(shutting_down ? WARNING : FATAL) << "destroying mutex with owner: "
293 LOG(shutting_down ? WARNING : FATAL) << "unexpectedly found an owner on unlocked mutex "
297 LOG(shutting_down ? WARNING : FATAL) << "unexpectedly found a contender on mutex " << name_;
306 // TODO: should we just not log at all if shutting down? this could be the logging mutex!
350 CHECK(recursion_count_ == 1 || recursive_) << "Unexpected recursion count on mutex: "
390 CHECK(recursion_count_ == 1 || recursive_) << "Unexpected recursion count on mutex: "
404 CHECK(recursion_count_ == 0 || recursive_) << "Unexpected recursion count on mutex: "
483 // TODO: should we just not log at all if shutting down? this could be the logging mutex!
722 // Requeue waiters onto mutex. The waiter holds the contender count on the mutex high ensuring
723 // mutex unlocks will awaken the requeued waiter thread.
745 // Futex wake 1 waiter who will then come and in contend on mutex. It'd be nice to requeue them