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

/external/valgrind/drd/tests/
H A Dtsan_thread_wrappers_pthread.h113 CHECK(0 == pthread_spin_init(&mu_, 0));
114 ANNOTATE_RWLOCK_CREATE((void*)&mu_);
117 ANNOTATE_RWLOCK_DESTROY((void*)&mu_);
118 CHECK(0 == pthread_spin_destroy(&mu_));
121 CHECK(0 == pthread_spin_lock(&mu_));
122 ANNOTATE_RWLOCK_ACQUIRED((void*)&mu_, 1);
125 ANNOTATE_RWLOCK_RELEASED((void*)&mu_, 1);
126 CHECK(0 == pthread_spin_unlock(&mu_));
129 pthread_spinlock_t mu_; member in class:SpinLock
137 SpinLock() : mu_(OS_SPINLOCK_INI
152 OSSpinLock mu_; member in class:SpinLock
256 pthread_mutex_t mu_; member in class:Mutex
271 Mutex *mu_; member in class:MutexLock
309 pthread_rwlock_t mu_; member in class:RWLock
322 RWLock *mu_; member in class:ReaderLockScoped
335 RWLock *mu_; member in class:WriterLockScoped
413 Mutex mu_; member in class:ProducerConsumerQueue
586 Mutex mu_; member in class:BlockingCounter
[all...]
H A Dtsan_unittest.cpp3705 this->mu_.Lock();
3707 this->mu_.Unlock();
3748 Mutex mu_; // protects data_ member in struct:RefCountedClass
3898 this->mu_.Lock();
3900 this->mu_.Unlock();
3929 Mutex mu_; member in struct:AtomicRefCountedClass
3930 int data_; // under mu_
6576 MutexLock lock(&mu_);
6583 MutexLock lock(&mu_);
6591 Mutex mu_; member in class:FifoMessageQueue
[all...]
/external/clang/test/SemaCXX/
H A Dwarn-thread-safety-analysis.cpp972 void func1(int y) LOCKS_EXCLUDED(mu_);
973 template <typename T> void func2(T x) LOCKS_EXCLUDED(mu_);
975 Mutex mu_; member in class:thread_annot_lock_38::Foo
991 Mutex *mu_; member in class:thread_annot_lock_43::Foo
997 int GetA() EXCLUSIVE_LOCKS_REQUIRED(foo_->mu_) { return a_; }
998 int a_ GUARDED_BY(foo_->mu_);
1006 fb->foo_->mu_->Lock();
1008 fb->foo_->mu_->Unlock();
1124 Mutex mu_; member in class:thread_annot_lock_68_modified::Bar
1131 mu_
1139 Mutex mu_; member in class:thread_annot_lock_68_modified::Foo
1195 Mutex mu_; member in class:thread_annot_lock_47::Base
1466 Mutex mu_; member in class:thread_annot_lock_46::Base
1688 Mutex mu_; member in class:FunctionAttrTest::Foo
1839 Mutex mu_; member in class:TestTemplateAttributeInstantiation::Foo1
1846 Mutex mu_; member in class:TestTemplateAttributeInstantiation::Foo2
1893 Mutex mu_; member in class:TestTemplateAttributeInstantiation::Cell
1966 Mutex mu_; member in class:TestTemplateAttributeInstantiation::CellDelayed
1991 Mutex mu_; member in class:FunctionDeclDefTest::Foo
2058 Mutex mu_; member in class:FunctionDefinitionTest::Foo
2067 Mutex mu_; member in class:FunctionDefinitionTest::FooT
2185 Mutex mu_; member in class:SelfLockingTest::MyLock2
2221 Mutex mu_; member in namespace:NoReturnTest
2251 Mutex mu_; member in class:TestMultiDecl::Foo
2274 Mutex mu_; member in class:MoreLockExpressions::Foo
2408 Mutex mu_; member in class:LockReturned::Foo
2508 Mutex mu_; member in class:ReleasableScopedLock::Foo
2592 Mutex mu_; member in class:DoubleLockBug::Foo
2646 Mutex mu_; member in class:FoolishScopedLockableBug::Foo
2726 SmartPtr<Mutex> mu_; member in class:SmartPointerTests::Foo
2729 int c GUARDED_BY(*mu_); member in class:SmartPointerTests::Foo
3055 Mutex mu_; member in class:TryLockEqTest::Foo
3142 Mutex mu_; member in class:ExistentialPatternMatching::Graph
3145 void LockAllGraphs() EXCLUSIVE_LOCK_FUNCTION(&Graph::mu_); member in namespace:ExistentialPatternMatching
3146 void UnlockAllGraphs() UNLOCK_FUNCTION(&Graph::mu_); member in namespace:ExistentialPatternMatching
3150 int a GUARDED_BY(&Graph::mu_); member in class:ExistentialPatternMatching::Node
3155 void foo2() LOCKS_EXCLUDED(&Graph::mu_); member in class:ExistentialPatternMatching::Node
3203 Mutex mu_; member in class:StringIgnoreTest::Foo
3273 Mutex mu_; member in struct:TrylockWithCleanups::Foo
3293 Mutex mu_; member in class:UniversalLock::Foo
3391 Mutex mu_; member in class:ExprMatchingBugFix::Foo
3405 void unlockFoo() UNLOCK_FUNCTION(&Foo::mu_); member in struct:ExprMatchingBugFix::Bar::Nested
3430 static Mutex mu_; member in class:ComplexNameTest::Foo
3440 static Mutex mu_; member in class:ComplexNameTest::Bar
3542 Mutex* mu_; member in struct:TemplateFunctionParamRemapTest::Cell
3625 Mutex mu_; member in class:SelfConstructorTest::SelfLock
3861 Mutex mu_; member in class:GuardedNonPrimitiveTypeTest::Foo
3896 Mutex mu_; member in class:GuardedNonPrimitive_MemberAccess::Bar
3935 Mutex mu_; member in class:TestThrowExpr::Foo
3975 Mutex mu_; member in class:LockUnlockFunctionTest::MyLockable
4028 Mutex mu_; member in class:LockUnlockFunctionTest::Foo
4041 Mutex mu_; member in class:AssertHeldTest::Foo
4413 Mutex mu_; member in class:ThreadAttributesOnLambdas::Foo
[all...]
H A Dwarn-thread-safety-parsing.cpp1300 Mutex mu_; member in class:FunctionDefinitionParseTest::Foo
1308 Mutex mu_; member in class:FunctionDefinitionParseTest::Bar
1312 void Foo::foo1() EXCLUSIVE_LOCKS_REQUIRED(mu_) { }
1313 void Foo::foo2(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { }
1316 void Bar<T>::bar() EXCLUSIVE_LOCKS_REQUIRED(mu_) { }
1318 void baz(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { }
1327 int GUARDED_BY(mu_) a;
1328 int GUARDED_BY(mu_) b, c;
1331 Mutex mu_; member in class:TestMultiDecl::Foo
1366 Mutex mu_; member in class:PointerToMemberTest::Graph
1368 static Mutex* get_static_mu() LOCK_RETURNED(&Graph::mu_); member in class:PointerToMemberTest::Graph
1373 void foo() EXCLUSIVE_LOCKS_REQUIRED(&Graph::mu_); member in class:PointerToMemberTest::Node
1374 int a GUARDED_BY(&Graph::mu_); member in class:PointerToMemberTest::Node
1399 Mutex mu_; member in class:SmartPointerTest::MyClass
[all...]
/external/ceres-solver/internal/ceres/
H A Dmutex.h286 explicit CeresMutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); }
287 ~CeresMutexLock() { mu_->Unlock(); }
289 Mutex * const mu_; member in class:ceres::internal::CeresMutexLock
298 explicit CeresReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); }
299 ~CeresReaderMutexLock() { mu_->ReaderUnlock(); }
301 Mutex * const mu_; member in class:ceres::internal::CeresReaderMutexLock
309 explicit CeresWriterMutexLock(Mutex *mu) : mu_(mu) { mu_
312 Mutex * const mu_; member in class:ceres::internal::CeresWriterMutexLock
[all...]
H A Ddogleg_strategy.cc58 mu_(kMinMu),
541 while (mu_ < max_mu_) {
558 lm_diagonal_ = diagonal_ * std::sqrt(mu_);
592 mu_ *= mu_increase_factor_;
593 VLOG(2) << "Increasing mu " << mu_;
627 mu_ = max(min_mu_, 2.0 * mu_ / mu_increase_factor_);
637 mu_ *= mu_increase_factor_;
H A Ddogleg_strategy.h107 // reports an invalid step, the value of mu_ is increased so that
110 // If a successful step is reported, then the value of mu_ is
112 double mu_; member in class:ceres::internal::DoglegStrategy
/external/regex-re2/util/
H A Dmutex.h151 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); }
152 ~MutexLock() { mu_->Unlock(); }
154 Mutex * const mu_; member in class:re2::MutexLock
163 explicit ReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); }
164 ~ReaderMutexLock() { mu_->ReaderUnlock(); }
166 Mutex * const mu_; member in class:re2::ReaderMutexLock
174 explicit WriterMutexLock(Mutex *mu) : mu_(mu) { mu_
177 Mutex * const mu_; member in class:re2::WriterMutexLock
[all...]
/external/clang/test/Sema/
H A Dwarn-thread-safety-analysis.c31 struct Mutex *mu_; member in struct:Foo
45 int a_ GUARDED_BY(foo_.mu_);
46 int *b_ PT_GUARDED_BY(foo_.mu_) = &a_;
67 void set_value(int *a, int value) EXCLUSIVE_LOCKS_REQUIRED(foo_.mu_) {
71 int get_value(int *p) SHARED_LOCKS_REQUIRED(foo_.mu_){
103 set_value(&a_, 0); // expected-warning{{calling function 'set_value' requires holding mutex 'foo_.mu_' exclusively}}
104 get_value(b_); // expected-warning{{calling function 'get_value' requires holding mutex 'foo_.mu_'}}
105 mutex_exclusive_lock(foo_.mu_);
107 mutex_unlock(foo_.mu_);
108 mutex_shared_lock(foo_.mu_);
[all...]
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mutex.h178 : mu_(mu) {
179 mu_->Lock();
183 mu_->Unlock();
187 MutexType *mu_; member in class:__sanitizer::GenericScopedLock
197 : mu_(mu) {
198 mu_->ReadLock();
202 mu_->ReadUnlock();
206 MutexType *mu_; member in class:__sanitizer::GenericScopedReadLock
H A Dsanitizer_symbolizer_libcdep.cc64 BlockingMutexLock l(&mu_);
83 BlockingMutexLock l(&mu_);
103 BlockingMutexLock l(&mu_);
115 BlockingMutexLock l(&mu_);
124 BlockingMutexLock l(&mu_);
135 BlockingMutexLock l(&mu_);
H A Dsanitizer_symbolizer.h121 // its method should be protected by |mu_|.
126 mu_(synchronized_by) {}
134 BlockingMutex *mu_; member in class:__sanitizer::final::ModuleNameOwner
158 BlockingMutex mu_; member in class:__sanitizer::final
H A Dsanitizer_symbolizer.cc79 mu_->CheckLocked();
99 : module_names_(&mu_), n_modules_(0), modules_fresh_(false), tools_(tools),
H A Dsanitizer_allocator.h254 SpinMutexLock l(&mu_);
262 SpinMutexLock l(&mu_);
271 SpinMutexLock l(&mu_);
286 mutable SpinMutex mu_; member in class:__sanitizer::AllocatorGlobalStats
610 mu_.Init();
649 SpinMutexLock l(&mu_);
661 StaticSpinMutex mu_; member in class:__sanitizer::TwoLevelByteMap
/external/compiler-rt/test/tsan/
H A Ddeadlock_detector_stress_test.cc30 assert(0 == pthread_mutex_init(&mu_, &attr));
32 assert(0 == pthread_mutex_init(&mu_, 0));
36 assert(0 == pthread_mutex_destroy(&mu_));
41 void lock() { assert(0 == pthread_mutex_lock(&mu_)); }
42 void unlock() { assert(0 == pthread_mutex_unlock(&mu_)); }
43 bool try_lock() { return 0 == pthread_mutex_trylock(&mu_); }
49 pthread_mutex_t mu_; member in class:PthreadMutex
61 PthreadSpinLock() { assert(0 == pthread_spin_init(&mu_, 0)); }
63 assert(0 == pthread_spin_destroy(&mu_));
68 void lock() { assert(0 == pthread_spin_lock(&mu_)); }
76 pthread_spinlock_t mu_; member in class:PthreadSpinLock
97 pthread_rwlock_t mu_; member in class:PthreadRWLock
[all...]
/external/protobuf/src/google/protobuf/stubs/
H A Dcommon.h1127 explicit MutexLock(Mutex *mu) : mu_(mu) { this->mu_->Lock(); }
1128 ~MutexLock() { this->mu_->Unlock(); }
1130 Mutex *const mu_; member in class:google::protobuf::internal::MutexLock
1142 mu_(mu) { if (this->mu_ != NULL) { this->mu_->Lock(); } }
1143 ~MutexLockMaybe() { if (this->mu_ != NULL) { this->mu_->Unlock(); } }
1145 Mutex *const mu_; member in class:google::protobuf::internal::MutexLockMaybe
[all...]
/external/regex-re2/re2/
H A Ddfa.cc1110 Mutex* mu_; member in class:re2::DFA::RWLocker
1117 : mu_(mu), writing_(false) {
1119 mu_->ReaderLock();
1126 mu_->ReaderUnlock();
1127 mu_->Lock();
1134 mu_->WriterUnlock();
1136 mu_->ReaderUnlock();

Completed in 535 milliseconds