Lines Matching refs:BaseMutex
41 Atomic<const BaseMutex*> all_mutexes_guard;
43 std::set<BaseMutex*>* all_mutexes;
137 explicit ScopedAllMutexesLock(const BaseMutex* mutex) : mutex_(mutex) { in ScopedAllMutexesLock()
151 const BaseMutex* const mutex_;
157 ScopedContentionRecorder(BaseMutex* mutex, uint64_t blocked_tid, uint64_t owner_tid) in ScopedContentionRecorder()
178 BaseMutex* const mutex_;
184 BaseMutex::BaseMutex(const char* name, LockLevel level) in BaseMutex() function in art::BaseMutex
190 std::set<BaseMutex*>** all_mutexes_ptr = &gAllMutexData->all_mutexes; in BaseMutex()
194 *all_mutexes_ptr = new std::set<BaseMutex*>(); in BaseMutex()
200 BaseMutex::~BaseMutex() { in ~BaseMutex()
207 void BaseMutex::DumpAll(std::ostream& os) { in DumpAll()
210 ScopedAllMutexesLock mu(reinterpret_cast<const BaseMutex*>(-1)); in DumpAll()
211 std::set<BaseMutex*>* all_mutexes = gAllMutexData->all_mutexes; in DumpAll()
217 for (const BaseMutex* mutex : *all_mutexes) { in DumpAll()
224 for (const BaseMutex* mutex : *all_mutexes) { in DumpAll()
233 void BaseMutex::CheckSafeToWait(Thread* self) { in CheckSafeToWait()
245 BaseMutex* held_mutex = self->GetHeldMutex(static_cast<LockLevel>(i)); in CheckSafeToWait()
287 void BaseMutex::ContentionLogData::AddToWaitTime(uint64_t value) { in AddToWaitTime()
294 void BaseMutex::RecordContention(uint64_t blocked_tid, in RecordContention()
320 void BaseMutex::DumpContention(std::ostream& os) const { in DumpContention()
381 : BaseMutex(name, level), exclusive_owner_(0), recursion_count_(0), recursive_(recursive) { in Mutex()
657 : BaseMutex(name, level) in ReaderWriterMutex()