Lines Matching refs:Mutex
39 if (Mutex.tryLock()) {
51 Mutex.lock();
53 inline void unlock() NO_THREAD_SAFETY_ANALYSIS { Mutex.unlock(); }
61 void assertLocked(bool BypassCheck) ASSERT_CAPABILITY(Mutex) {
63 Mutex.assertHeld();
67 // Cache/QuarantineCache always have the `Mutex` acquired. However, the
72 // TODO(chiahungduan): Ideally, we want to do `Mutex.assertHeld` but acquiring
75 typename Allocator::CacheT &getCache() REQUIRES(Mutex) { return Cache; }
76 typename Allocator::QuarantineCacheT &getQuarantineCache() REQUIRES(Mutex) {
81 HybridMutex Mutex;
84 typename Allocator::CacheT Cache GUARDED_BY(Mutex);
85 typename Allocator::QuarantineCacheT QuarantineCache GUARDED_BY(Mutex);