Home
last modified time | relevance | path

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

/external/valgrind/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.cpp3709 this->mu_.Lock(); in AccessData()
3711 this->mu_.Unlock(); in AccessData()
3752 Mutex mu_; // protects data_ member
3902 this->mu_.Lock(); in AccessData()
3904 this->mu_.Unlock(); in AccessData()
3933 Mutex mu_; member
6580 MutexLock lock(&mu_); in Put()
6587 MutexLock lock(&mu_); in Get()
6595 Mutex mu_; member in FifoMessageQueue
/external/clang/test/SemaCXX/
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 thread_annot_lock_38::Foo
991 Mutex *mu_; member in thread_annot_lock_43::Foo
997 int GetA() EXCLUSIVE_LOCKS_REQUIRED(foo_->mu_) { return a_; } in GetA()
998 int a_ GUARDED_BY(foo_->mu_);
1006 fb->foo_->mu_->Lock(); in main()
1008 fb->foo_->mu_->Unlock(); in main()
1124 Mutex mu_; member in thread_annot_lock_68_modified::Bar
1131 mu_.Lock(); in func()
[all …]
Dwarn-thread-safety-parsing.cpp1300 Mutex mu_; member in FunctionDefinitionParseTest::Foo
1308 Mutex mu_; member in FunctionDefinitionParseTest::Bar
1312 void Foo::foo1() EXCLUSIVE_LOCKS_REQUIRED(mu_) { } in foo1()
1313 void Foo::foo2(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { } in foo2()
1316 void Bar<T>::bar() EXCLUSIVE_LOCKS_REQUIRED(mu_) { } in bar()
1318 void baz(Foo *f) EXCLUSIVE_LOCKS_REQUIRED(f->mu_) { } in baz()
1327 int GUARDED_BY(mu_) a;
1328 int GUARDED_BY(mu_) b, c;
1331 Mutex mu_; member in TestMultiDecl::Foo
1366 Mutex mu_; member in PointerToMemberTest::Graph
[all …]
/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/ceres-solver/internal/ceres/
Dmutex.h286 explicit CeresMutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } in CeresMutexLock()
287 ~CeresMutexLock() { mu_->Unlock(); } in ~CeresMutexLock()
289 Mutex * const mu_;
298 explicit CeresReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); } in CeresReaderMutexLock()
299 ~CeresReaderMutexLock() { mu_->ReaderUnlock(); } in ~CeresReaderMutexLock()
301 Mutex * const mu_;
309 explicit CeresWriterMutexLock(Mutex *mu) : mu_(mu) { mu_->WriterLock(); } in CeresWriterMutexLock()
310 ~CeresWriterMutexLock() { mu_->WriterUnlock(); } in ~CeresWriterMutexLock()
312 Mutex * const mu_;
Ddogleg_strategy.cc58 mu_(kMinMu), in DoglegStrategy()
541 while (mu_ < max_mu_) { in ComputeGaussNewtonStep()
558 lm_diagonal_ = diagonal_ * std::sqrt(mu_); in ComputeGaussNewtonStep()
592 mu_ *= mu_increase_factor_; in ComputeGaussNewtonStep()
593 VLOG(2) << "Increasing mu " << mu_; in ComputeGaussNewtonStep()
627 mu_ = max(min_mu_, 2.0 * mu_ / mu_increase_factor_); in StepAccepted()
637 mu_ *= mu_increase_factor_; in StepIsInvalid()
Ddogleg_strategy.h112 double mu_; variable
/external/clang/test/Sema/
Dwarn-thread-safety-analysis.c31 struct Mutex *mu_; member
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_) { in set_value()
71 int get_value(int *p) SHARED_LOCKS_REQUIRED(foo_.mu_){ in get_value()
106 mutex_exclusive_lock(foo_.mu_); in main()
108 mutex_unlock(foo_.mu_); in main()
109 mutex_shared_lock(foo_.mu_); in main()
111 mutex_unlock(foo_.mu_); in main()
115 mutex_exclusive_lock(foo_.mu_); in main()
[all …]
/external/compiler-rt/test/tsan/
Ddeadlock_detector_stress_test.cc30 assert(0 == pthread_mutex_init(&mu_, &attr)); in PthreadMutex()
32 assert(0 == pthread_mutex_init(&mu_, 0)); in PthreadMutex()
36 assert(0 == pthread_mutex_destroy(&mu_)); in ~PthreadMutex()
41 void lock() { assert(0 == pthread_mutex_lock(&mu_)); } in lock()
42 void unlock() { assert(0 == pthread_mutex_unlock(&mu_)); } in unlock()
43 bool try_lock() { return 0 == pthread_mutex_trylock(&mu_); } in try_lock()
49 pthread_mutex_t mu_; member in PthreadMutex
62 PthreadSpinLock() { assert(0 == pthread_spin_init(&mu_, 0)); } in PthreadSpinLock()
64 assert(0 == pthread_spin_destroy(&mu_)); in ~PthreadSpinLock()
69 void lock() { assert(0 == pthread_spin_lock(&mu_)); } in lock()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h178 : mu_(mu) { in GenericScopedLock()
179 mu_->Lock(); in GenericScopedLock()
183 mu_->Unlock(); in ~GenericScopedLock()
187 MutexType *mu_;
197 : mu_(mu) { in GenericScopedReadLock()
198 mu_->ReadLock(); in GenericScopedReadLock()
202 mu_->ReadUnlock(); in ~GenericScopedReadLock()
206 MutexType *mu_;
Dsanitizer_symbolizer.h126 mu_(synchronized_by) {} in ModuleNameOwner()
134 BlockingMutex *mu_; variable
158 BlockingMutex mu_; variable
Dsanitizer_symbolizer_libcdep.cc64 BlockingMutexLock l(&mu_); in SymbolizePC()
83 BlockingMutexLock l(&mu_); in SymbolizeData()
103 BlockingMutexLock l(&mu_); in GetModuleNameAndOffsetForPC()
115 BlockingMutexLock l(&mu_); in Flush()
124 BlockingMutexLock l(&mu_); in Demangle()
135 BlockingMutexLock l(&mu_); in PrepareForSandboxing()
Dsanitizer_symbolizer.cc79 mu_->CheckLocked(); in GetOwnedCopy()
99 : module_names_(&mu_), n_modules_(0), modules_fresh_(false), tools_(tools), in Symbolizer()
Dsanitizer_allocator.h254 SpinMutexLock l(&mu_); in Register()
262 SpinMutexLock l(&mu_); in Unregister()
271 SpinMutexLock l(&mu_); in Get()
286 mutable SpinMutex mu_;
610 mu_.Init(); in TestOnlyInit()
650 SpinMutexLock l(&mu_); in GetOrCreate()
662 StaticSpinMutex mu_; variable
/external/protobuf/src/google/protobuf/stubs/
Dcommon.h1127 explicit MutexLock(Mutex *mu) : mu_(mu) { this->mu_->Lock(); } in MutexLock()
1128 ~MutexLock() { this->mu_->Unlock(); } in ~MutexLock()
1130 Mutex *const mu_;
1142 mu_(mu) { if (this->mu_ != NULL) { this->mu_->Lock(); } } in MutexLockMaybe()
1143 ~MutexLockMaybe() { if (this->mu_ != NULL) { this->mu_->Unlock(); } } in ~MutexLockMaybe()
1145 Mutex *const mu_;
/external/regex-re2/re2/
Ddfa.cc1110 Mutex* mu_; member in re2::DFA::RWLocker
1117 : mu_(mu), writing_(false) { in RWLocker()
1119 mu_->ReaderLock(); in RWLocker()
1126 mu_->ReaderUnlock(); in LockForWriting()
1127 mu_->Lock(); in LockForWriting()
1134 mu_->WriterUnlock(); in ~RWLocker()
1136 mu_->ReaderUnlock(); in ~RWLocker()
/external/opencv3/doc/tutorials/imgproc/gausian_median_blur_bilateral_filter/
Dgausian_median_blur_bilateral_filter.markdown67 …\f[G_{0}(x, y) = A e^{ \dfrac{ -(x - \mu_{x})^{2} }{ 2\sigma^{2}_{x} } + \dfrac{ -(y - \mu_{y})^…