Lines Matching refs:mutex

17 #include "mutex.h"
26 #include "mutex-inl.h"
99 // A guard for all_mutexes_ that's not a mutex (Mutexes must CAS to acquire and busy wait).
109 explicit ScopedAllMutexesLock(const BaseMutex* mutex) : mutex_(mutex) {
110 while (!all_mutex_data->all_mutexes_guard.compare_and_swap(0, reinterpret_cast<int32_t>(mutex))) {
155 BaseMutex* mutex = *it;
156 if (mutex->HasEverContended()) {
157 mutex->Dump(os);
163 BaseMutex* mutex = *it;
164 if (!mutex->HasEverContended()) {
165 mutex->Dump(os);
178 CHECK(self->GetHeldMutex(level_) == this) << "Waiting on unacquired mutex: " << name_;
319 LOG(shutting_down ? WARNING : FATAL) << "destroying mutex with owner: " << exclusive_owner_;
321 CHECK_EQ(exclusive_owner_, 0U) << "unexpectedly found an owner on unlocked mutex " << name_;
322 CHECK_EQ(num_contenders_, 0) << "unexpectedly found a contender on mutex " << name_;
330 // TODO: should we just not log at all if shutting down? this could be the logging mutex!
375 CHECK(recursion_count_ == 1 || recursive_) << "Unexpected recursion count on mutex: "
414 CHECK(recursion_count_ == 1 || recursive_) << "Unexpected recursion count on mutex: "
427 CHECK(recursion_count_ == 0 || recursive_) << "Unexpected recursion count on mutex: "
536 // TODO: should we just not log at all if shutting down? this could be the logging mutex!
800 // Requeue waiters onto mutex. The waiter holds the contender count on the mutex high ensuring
801 // mutex unlocks will awaken the requeued waiter thread.
823 // Futex wake 1 waiter who will then come and in contend on mutex. It'd be nice to requeue them