Home
last modified time | relevance | path

Searched refs:mu_ (Results 1 – 17 of 17) sorted by relevance

/external/valgrind/main/drd/tests/
Dtsan_thread_wrappers_pthread.h113 CHECK(0 == pthread_spin_init(&mu_, 0)); in SpinLock()
114 ANNOTATE_RWLOCK_CREATE((void*)&mu_); in SpinLock()
117 ANNOTATE_RWLOCK_DESTROY((void*)&mu_); in ~SpinLock()
118 CHECK(0 == pthread_spin_destroy(&mu_)); in ~SpinLock()
121 CHECK(0 == pthread_spin_lock(&mu_)); in Lock()
122 ANNOTATE_RWLOCK_ACQUIRED((void*)&mu_, 1); in Lock()
125 ANNOTATE_RWLOCK_RELEASED((void*)&mu_, 1); in Unlock()
126 CHECK(0 == pthread_spin_unlock(&mu_)); in Unlock()
129 pthread_spinlock_t mu_;
137 SpinLock() : mu_(OS_SPINLOCK_INIT) { in SpinLock()
[all …]
Dtsan_unittest.cpp3705 this->mu_.Lock(); in AccessData()
3707 this->mu_.Unlock(); in AccessData()
3748 Mutex mu_; // protects data_ member
3898 this->mu_.Lock(); in AccessData()
3900 this->mu_.Unlock(); in AccessData()
3929 Mutex mu_; member
6576 MutexLock lock(&mu_); in Put()
6583 MutexLock lock(&mu_); in Get()
6591 Mutex mu_; member in FifoMessageQueue
/external/valgrind/unittest/
Dthread_wrappers_pthread.h152 CHECK(0 == pthread_mutex_init(&mu_, NULL)); in Mutex()
158 CHECK(0 == pthread_mutex_destroy(&mu_)); in ~Mutex()
160 void Lock() { CHECK(0 == pthread_mutex_lock(&mu_));} in Lock()
161 bool TryLock() { return (0 == pthread_mutex_trylock(&mu_));} in TryLock()
167 CHECK(0 == pthread_mutex_unlock(&mu_)); in Unlock()
189 pthread_cond_wait(&cv_, &mu_); in WaitLoop()
204 retcode = pthread_cond_timedwait(&cv_, &mu_, &timeout); in WaitLoopWithTimeout()
212 pthread_mutex_t mu_; // Must be the first member. variable
222 void Wait(Mutex *mu) { CHECK(0 == pthread_cond_wait(&cv_, &mu->mu_)); } in Wait()
228 return 0 != pthread_cond_timedwait(&cv_, &mu->mu_, &timeout); in WaitWithTimeout()
[all …]
Dthread_wrappers.h115 mu_.Lock(); in Put()
117 ANNOTATE_CONDVAR_SIGNAL(&mu_); // LockWhen in Get() in Put()
119 mu_.Unlock(); in Put()
125 mu_.LockWhen(Condition(IsQueueNotEmpty, &q_)); in Get()
129 mu_.Unlock(); in Get()
137 mu_.Lock(); in TryGet()
139 mu_.Unlock(); in TryGet()
144 Mutex mu_;
285 : mu_(mu) { in MutexLock()
286 mu_->Lock(); in MutexLock()
[all …]
Datomicity_tests.cc48 MutexLock l(&mu_); in size()
53 MutexLock l(&mu_); in push_back()
58 MutexLock l(&mu_); in pop_back()
64 Mutex mu_; member in AtomicityTests_LockedVector::LockedVector
Ddemo_tests.cc517 MutexLock lock(&mu_); in Done()
522 MutexLock lock(&mu_); in ~A()
527 Mutex mu_; member in test314::A
Dracecheck_unittest.cc3517 this->mu_.Lock(); in AccessData()
3519 this->mu_.Unlock(); in AccessData()
3559 Mutex mu_; // protects data_ member
3709 this->mu_.Lock(); in AccessData()
3711 this->mu_.Unlock(); in AccessData()
3740 Mutex mu_; member
4035 ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(&mu_); in A()
4041 MutexLock lock(&mu_); in Done()
4047 MutexLock lock(&mu_); in ~A()
4054 Mutex mu_; member in PositiveTests_HarmfulRaceInDtor::A
[all …]
/external/clang/test/SemaCXX/
Dwarn-thread-safety-analysis.cpp883 void func1(int y) LOCKS_EXCLUDED(mu_);
884 template <typename T> void func2(T x) LOCKS_EXCLUDED(mu_);
886 Mutex mu_; member in thread_annot_lock_38::Foo
902 Mutex *mu_; member in thread_annot_lock_43::Foo
908 int GetA() EXCLUSIVE_LOCKS_REQUIRED(foo_->mu_) { return a_; } in GetA()
909 int a_ GUARDED_BY(foo_->mu_);
917 fb->foo_->mu_->Lock(); in main()
919 fb->foo_->mu_->Unlock(); in main()
1035 Mutex mu_; member in thread_annot_lock_68_modified::Bar
1042 mu_.Lock(); in func()
[all …]
Dwarn-thread-safety-parsing.cpp1288 Mu mu_; member in FunctionDefinitionParseTest::Foo
1296 Mu mu_; member in FunctionDefinitionParseTest::Bar
1300 void Foo::foo1() __attribute__((exclusive_locks_required(mu_))) { } in foo1()
1301 void Foo::foo2(Foo *f) __attribute__((exclusive_locks_required(f->mu_))) { } in foo2()
1304 void Bar<T>::bar() __attribute__((exclusive_locks_required(mu_))) { } in bar()
1306 void baz(Foo *f) __attribute__((exclusive_locks_required(f->mu_))) { } in baz()
1315 int __attribute__((guarded_by(mu_))) a;
1316 int __attribute__((guarded_by(mu_))) b, c;
1319 Mu mu_; member in TestMultiDecl::Foo
/external/regex-re2/util/
Dmutex.h151 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } in MutexLock()
152 ~MutexLock() { mu_->Unlock(); } in ~MutexLock()
154 Mutex * const mu_;
163 explicit ReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); } in ReaderMutexLock()
164 ~ReaderMutexLock() { mu_->ReaderUnlock(); } in ~ReaderMutexLock()
166 Mutex * const mu_;
174 explicit WriterMutexLock(Mutex *mu) : mu_(mu) { mu_->WriterLock(); } in WriterMutexLock()
175 ~WriterMutexLock() { mu_->WriterUnlock(); } in ~WriterMutexLock()
177 Mutex * const mu_;
/external/chromium/sdch/open-vcdiff/src/
Dmutex.h266 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } in MutexLock()
267 ~MutexLock() { mu_->Unlock(); } in ~MutexLock()
269 Mutex * const mu_;
278 explicit ReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); } in ReaderMutexLock()
279 ~ReaderMutexLock() { mu_->ReaderUnlock(); } in ~ReaderMutexLock()
281 Mutex * const mu_;
289 explicit WriterMutexLock(Mutex *mu) : mu_(mu) { mu_->WriterLock(); } in WriterMutexLock()
290 ~WriterMutexLock() { mu_->WriterUnlock(); } in ~WriterMutexLock()
292 Mutex * const mu_;
/external/compiler-rt/lib/asan/
Dasan_thread_registry.cc32 mu_(x) { } in AsanThreadRegistry()
45 ScopedLock lock(&mu_); in RegisterThread()
57 ScopedLock lock(&mu_); in UnregisterThread()
105 ScopedLock lock(&mu_); in GetAccumulatedStats()
111 ScopedLock lock(&mu_); in GetCurrentAllocatedBytes()
117 ScopedLock lock(&mu_); in GetHeapSize()
123 ScopedLock lock(&mu_); in GetFreeBytes()
140 ScopedLock lock(&mu_); in FindThreadByStackAddress()
Dasan_lock.h39 explicit ScopedLock(AsanLock *mu) : mu_(mu) { in ScopedLock()
40 mu_->Lock(); in ScopedLock()
43 mu_->Unlock(); in ~ScopedLock()
46 AsanLock *mu_;
Dasan_allocator.cc308 explicit MallocInfo(LinkerInitialized x) : mu_(x) { } in MallocInfo()
314 ScopedLock lock(&mu_); in AllocateChunks()
332 ScopedLock lock(&mu_); in SwallowThreadLocalMallocStorage()
356 ScopedLock lock(&mu_); in BypassThreadLocalQuarantine()
361 ScopedLock lock(&mu_); in FindMallocedOrFreed()
367 ScopedLock lock(&mu_); in AllocationSize()
381 mu_.Lock(); in ForceLock()
385 mu_.Unlock(); in ForceUnlock()
389 ScopedLock lock(&mu_); in PrintStatus()
407 ScopedLock lock(&mu_); in FindPageGroup()
[all …]
Dasan_thread_registry.h72 AsanLock mu_; variable
/external/protobuf/src/google/protobuf/stubs/
Dcommon.h1074 explicit MutexLock(Mutex *mu) : mu_(mu) { this->mu_->Lock(); } in MutexLock()
1075 ~MutexLock() { this->mu_->Unlock(); } in ~MutexLock()
1077 Mutex *const mu_;
1089 mu_(mu) { if (this->mu_ != NULL) { this->mu_->Lock(); } } in MutexLockMaybe()
1090 ~MutexLockMaybe() { if (this->mu_ != NULL) { this->mu_->Unlock(); } } in ~MutexLockMaybe()
1092 Mutex *const mu_;
/external/regex-re2/re2/
Ddfa.cc1071 Mutex* mu_; member in re2::DFA::RWLocker
1078 : mu_(mu), writing_(false) { in RWLocker()
1080 mu_->ReaderLock(); in RWLocker()
1087 mu_->ReaderUnlock(); in LockForWriting()
1088 mu_->Lock(); in LockForWriting()
1095 mu_->WriterUnlock(); in ~RWLocker()
1097 mu_->ReaderUnlock(); in ~RWLocker()