Home
last modified time | relevance | path

Searched refs:MutexLock (Results 1 – 25 of 50) sorted by relevance

12

/external/valgrind/unittest/
Ddemo_tests.cc47 MutexLock lock(&mu1); // Correct Mutex. in Thread1()
52 MutexLock lock(&mu2); // Wrong Mutex. in Thread2()
335 MutexLock lock3(&mu3); // This lock is unrelated to PTR. in Writer1()
336 MutexLock lock1(&mu1); // Protect PTR. in Writer1()
341 MutexLock lock2(&mu2); // This lock is unrelated to PTR. in Writer2()
342 MutexLock lock1(&mu1); // Protect PTR. in Writer2()
351 MutexLock lock2(&mu2); // Oh, gosh, this is a wrong mutex! in Reader()
393 MutexLock lock3(&mu3); // This lock is unrelated to PTR. in GoodWriter1()
394 MutexLock lock1(&mu1); // Protect PTR. in GoodWriter1()
399 MutexLock lock2(&mu2); // This lock is unrelated to PTR. in GoodWriter2()
[all …]
Datomicity_tests.cc48 MutexLock l(&mu_); in size()
53 MutexLock l(&mu_); in push_back()
58 MutexLock l(&mu_); in pop_back()
Dthread_wrappers.h282 class MutexLock { // Scoped Mutex Locker/Unlocker
284 MutexLock(Mutex *mu) in MutexLock() function
288 ~MutexLock() { in ~MutexLock()
300 MutexLock lock(&mu_); in DecrementCount()
/external/regex-re2/util/
Dmutex.h149 class MutexLock {
151 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } in MutexLock() function
152 ~MutexLock() { mu_->Unlock(); } in ~MutexLock()
156 MutexLock(const MutexLock&);
157 void operator=(const MutexLock&);
184 #define MutexLock(x) COMPILE_ASSERT(0, mutex_lock_decl_missing_var_name) macro
Datomicops.h50 re2::MutexLock l(&mu); in WriteMemoryBarrier()
/external/chromium/sdch/open-vcdiff/src/
Dmutex.h264 class MutexLock {
266 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } in MutexLock() function
267 ~MutexLock() { mu_->Unlock(); } in ~MutexLock()
271 MutexLock(const MutexLock&);
272 void operator=(const MutexLock&);
299 #define MutexLock(x) COMPILE_ASSERT(0, mutex_lock_decl_missing_var_name) macro
/external/llvm/test/CodeGen/ARM/
Dcall-tc.ll146 %class.MutexLock = type { i8 }
155 %lock = alloca %class.MutexLock, align 1
156 %1 = call %class.MutexLock* @_ZN9MutexLockC1Ev(%class.MutexLock* %lock)
159 %4 = call %class.MutexLock* @_ZN9MutexLockD1Ev(%class.MutexLock* %lock)
163 declare %class.MutexLock* @_ZN9MutexLockC1Ev(%class.MutexLock*) unnamed_addr nounwind align 2
165 declare %class.MutexLock* @_ZN9MutexLockD1Ev(%class.MutexLock*) unnamed_addr nounwind align 2
/external/chromium/testing/gmock/src/
Dgmock-spec-builders.cc177 MutexLock l(&mutex_); in CheckActionCountIfNotDone()
272 MutexLock l(&g_gmock_mutex); in RegisterOwner()
286 MutexLock l(&g_gmock_mutex); in SetOwnerAndName()
299 MutexLock l(&g_gmock_mutex); in MockObject()
316 MutexLock l(&g_gmock_mutex); in Name()
584 internal::MutexLock l(&internal::g_gmock_mutex); in SetReactionOnUninterestingCalls()
615 internal::MutexLock l(&internal::g_gmock_mutex); in UnregisterCallReaction()
624 internal::MutexLock l(&internal::g_gmock_mutex); in GetReactionOnUninterestingCalls()
633 internal::MutexLock l(&internal::g_gmock_mutex); in AllowLeak()
642 internal::MutexLock l(&internal::g_gmock_mutex); in VerifyAndClearExpectations()
[all …]
/external/openfst/src/include/fst/
Dlock.h56 class MutexLock {
58 MutexLock(Mutex *) {} in MutexLock() function
61 DISALLOW_COPY_AND_ASSIGN(MutexLock);
Dgeneric-register.h55 MutexLock l(register_lock_); in SetEntry()
100 MutexLock l(register_lock_); in LookupEntry()
Dflags.h77 fst::MutexLock l(register_lock_); in GetFlagDescription()
84 fst::MutexLock l(register_lock_); in SetDescription()
/external/protobuf/src/google/protobuf/stubs/
Donce_unittest.cc88 MutexLock lock(&done_mutex_); in IsDone()
124 MutexLock lock(&done_mutex_); in Start()
142 MutexLock lock(&mutex_); in CurrentState()
162 MutexLock lock(&mutex_); in Init()
Dcommon.cc185 MutexLock lock(log_silencer_count_mutex_); in Finish()
219 MutexLock lock(internal::log_silencer_count_mutex_); in LogSilencer()
225 MutexLock lock(internal::log_silencer_count_mutex_); in ~LogSilencer()
339 MutexLock lock(shutdown_functions_mutex); in OnShutdown()
Dcommon.h1072 class LIBPROTOBUF_EXPORT MutexLock {
1074 explicit MutexLock(Mutex *mu) : mu_(mu) { this->mu_->Lock(); } in MutexLock() function
1075 ~MutexLock() { this->mu_->Unlock(); } in ~MutexLock()
1078 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(MutexLock);
1082 typedef MutexLock ReaderMutexLock;
1083 typedef MutexLock WriterMutexLock;
1101 using internal::MutexLock;
/external/valgrind/unittest/output_tests/
Doutput_test1.cc7 MutexLock lock(&mu1); // Correct Mutex. in Thread1()
12 MutexLock lock(&mu2); // Wrong Mutex. in Thread2()
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dcompat.h62 class MutexLock {
64 MutexLock(Mutex *);
67 DISALLOW_EVIL_CONSTRUCTORS(MutexLock);
98 MutexLock l(register_lock_); in GetFlagDescription()
104 MutexLock l(register_lock_); in SetDescription()
Dcompat.cpp135 MutexLock::MutexLock(Mutex *mutex) {} // ?OP? in MutexLock() function in MutexLock
Dregister.h67 MutexLock l(register_lock_); in SetEntry()
78 MutexLock l(register_lock_); in LookupEntry()
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-linked_ptr.h110 MutexLock lock(&g_linked_ptr_mutex); in join()
122 MutexLock lock(&g_linked_ptr_mutex); in depart()
/external/gtest/include/gtest/internal/
Dgtest-linked_ptr.h110 MutexLock lock(&g_linked_ptr_mutex); in join()
122 MutexLock lock(&g_linked_ptr_mutex); in depart()
/external/protobuf/gtest/include/gtest/internal/
Dgtest-linked_ptr.h110 MutexLock lock(&g_linked_ptr_mutex); in join()
122 MutexLock lock(&g_linked_ptr_mutex); in depart()
/external/chromium/testing/gtest/include/gtest/internal/
Dgtest-linked_ptr.h110 MutexLock lock(&g_linked_ptr_mutex); in join()
122 MutexLock lock(&g_linked_ptr_mutex); in depart()
/external/valgrind/main/drd/tests/
Dtsan_thread_wrappers_pthread.h261 class MutexLock { // Scoped Mutex Locker/Unlocker
263 MutexLock(Mutex *mu) in MutexLock() function
267 ~MutexLock() { in ~MutexLock()
576 MutexLock lock(&mu_); in DecrementCount()
Dtsan_unittest.cpp55 #define WriterLockScoped MutexLock
4690 MutexLock a(&A); in Thread1()
4691 MutexLock b(&B); in Thread1()
4696 MutexLock b(&B); in Thread2()
4697 MutexLock c(&C); in Thread2()
4702 MutexLock a(&A); in Thread3()
4703 MutexLock c(&C); in Thread3()
5720 MutexLock lock(&mu); in InitMe()
6266 MutexLock lock(&mu); in Swapper()
6275 MutexLock lock(&mu); in Worker()
[all …]
/external/clang/test/SemaCXX/
Dwarn-thread-safety-analysis.cpp39 class __attribute__((scoped_lockable)) MutexLock { class
41 MutexLock(Mutex *mu) __attribute__((exclusive_lock_function(mu)));
42 ~MutexLock() __attribute__((unlock_function));
1564 MutexLock mulock(&mu1); in foo1()
1571 MutexLock mulock2a(&mu2); in foo2()
1575 MutexLock mulock2b(&mu2); in foo2()
1581 MutexLock mulock_a(&mu1); in foo3()
1582 MutexLock mulock_b(&mu1); // \ in foo3()
1587 MutexLock mulock1(&mu1), mulock2(&mu2); in foo4()
2106 MutexLock lock(&mu_); in test1()

12