Home | History | Annotate | Download | only in base

Lines Matching refs:BaseMutex

62   Atomic<const BaseMutex*> all_mutexes_guard;
64 std::set<BaseMutex*>* all_mutexes;
87 explicit ScopedAllMutexesLock(const BaseMutex* mutex) : mutex_(mutex) {
98 const BaseMutex* const mutex_;
101 BaseMutex::BaseMutex(const char* name, LockLevel level) : level_(level), name_(name) {
104 std::set<BaseMutex*>** all_mutexes_ptr = &gAllMutexData->all_mutexes;
108 *all_mutexes_ptr = new std::set<BaseMutex*>();
114 BaseMutex::~BaseMutex() {
121 void BaseMutex::DumpAll(std::ostream& os) {
124 ScopedAllMutexesLock mu(reinterpret_cast<const BaseMutex*>(-1));
125 std::set<BaseMutex*>* all_mutexes = gAllMutexData->all_mutexes;
130 typedef std::set<BaseMutex*>::const_iterator It;
133 BaseMutex* mutex = *it;
141 BaseMutex* mutex = *it;
150 void BaseMutex::CheckSafeToWait(Thread* self) {
161 BaseMutex* held_mutex = self->GetHeldMutex(static_cast<LockLevel>(i));
175 void BaseMutex::ContentionLogData::AddToWaitTime(uint64_t value) {
182 void BaseMutex::RecordContention(uint64_t blocked_tid,
208 void BaseMutex::DumpContention(std::ostream& os) const {
269 : BaseMutex(name, level), recursive_(recursive), recursion_count_(0) {
460 : BaseMutex(name, level)