Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/
Dmutex.h456 std::atomic<intptr_t> mu_; // The Mutex state.
525 explicit MutexLock(Mutex *mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { in MutexLock()
526 this->mu_->Lock(); in MutexLock()
534 : mu_(mu) { in MutexLock()
535 this->mu_->LockWhen(cond); in MutexLock()
543 ~MutexLock() ABSL_UNLOCK_FUNCTION() { this->mu_->Unlock(); } in ABSL_UNLOCK_FUNCTION()
546 Mutex *const mu_;
555 explicit ReaderMutexLock(Mutex *mu) ABSL_SHARED_LOCK_FUNCTION(mu) : mu_(mu) { in ReaderMutexLock()
561 : mu_(mu) { in ReaderMutexLock()
570 ~ReaderMutexLock() ABSL_UNLOCK_FUNCTION() { this->mu_->ReaderUnlock(); } in ABSL_UNLOCK_FUNCTION()
[all …]
Dmutex.cc731 intptr_t v = mu_.load(std::memory_order_relaxed); in ~Mutex()
733 ForgetSynchEvent(&this->mu_, kMuEvent, kMuSpin); in ~Mutex()
742 SynchEvent *e = EnsureSynchEvent(&this->mu_, name, kMuEvent, kMuSpin); in EnableDebugLog()
755 SynchEvent *e = EnsureSynchEvent(&this->mu_, nullptr, kMuEvent, kMuSpin); in EnableInvariantDebugging()
1068 intptr_t v = mu_.load(std::memory_order_relaxed); in TryRemove()
1071 mu_.compare_exchange_strong(v, v | kMuSpin | kMuWriter, in TryRemove()
1105 v = mu_.load(std::memory_order_relaxed); in TryRemove()
1112 } while (!mu_.compare_exchange_weak(v, nv, in TryRemove()
1436 (mu_.load(std::memory_order_relaxed) & (kMuWriter | kMuReader)) != 0 && in AssertNotHeld()
1473 intptr_t v = mu_.load(std::memory_order_relaxed); in Lock()
[all …]
Dmutex_benchmark.cc49 explicit RaiiLocker(MutexType* mu) : mu_(mu) { mu_->Lock(); } in RaiiLocker()
50 ~RaiiLocker() { mu_->Unlock(); } in ~RaiiLocker()
52 MutexType* mu_; member in __anone87a4a2a0111::RaiiLocker
58 explicit RaiiLocker(std::mutex* mu) : mu_(mu) { mu_->lock(); } in RaiiLocker()
59 ~RaiiLocker() { mu_->unlock(); } in ~RaiiLocker()
61 std::mutex* mu_; member in __anone87a4a2a0111::RaiiLocker
/third_party/protobuf/src/google/protobuf/stubs/
Dmutex.h99 void Lock() GOOGLE_PROTOBUF_ACQUIRE() { mu_.lock(); } in Lock()
100 void Unlock() GOOGLE_PROTOBUF_RELEASE() { mu_.unlock(); } in Unlock()
107 std::mutex mu_;
109 CriticalSectionLock mu_;
118 explicit MutexLock(Mutex *mu) : mu_(mu) { this->mu_->Lock(); } in MutexLock()
119 ~MutexLock() { this->mu_->Unlock(); } in ~MutexLock()
121 Mutex *const mu_;
133 mu_(mu) { if (this->mu_ != nullptr) { this->mu_->Lock(); } } in MutexLockMaybe()
134 ~MutexLockMaybe() { if (this->mu_ != nullptr) { this->mu_->Unlock(); } } in ~MutexLockMaybe()
136 Mutex *const mu_;
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
Dwaiter.cc128 explicit PthreadMutexHolder(pthread_mutex_t *mu) : mu_(mu) { in PthreadMutexHolder()
129 const int err = pthread_mutex_lock(mu_); in PthreadMutexHolder()
139 const int err = pthread_mutex_unlock(mu_); in ~PthreadMutexHolder()
146 pthread_mutex_t *mu_; member in absl::synchronization_internal::PthreadMutexHolder
150 const int err = pthread_mutex_init(&mu_, 0); in Waiter()
165 const int err = pthread_mutex_destroy(&mu_); in ~Waiter()
182 PthreadMutexHolder h(&mu_); in Wait()
192 const int err = pthread_cond_wait(&cv_, &mu_); in Wait()
197 const int err = pthread_cond_timedwait(&cv_, &mu_, &abs_timeout); in Wait()
215 PthreadMutexHolder h(&mu_); in Post()
[all …]
Dthread_pool.h46 absl::MutexLock l(&mu_); in ~ThreadPool()
59 absl::MutexLock l(&mu_); in Schedule()
64 bool WorkAvailable() const ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_) { in WorkAvailable()
72 absl::MutexLock l(&mu_); in WorkLoop()
73 mu_.Await(absl::Condition(this, &ThreadPool::WorkAvailable)); in WorkLoop()
84 absl::Mutex mu_; variable
85 std::queue<std::function<void()>> queue_ ABSL_GUARDED_BY(mu_);
Dper_thread_sem_test.cc50 std::unique_lock<std::mutex> lock(mu_); in Wait()
61 std::lock_guard<std::mutex> lock(mu_); in Post()
67 std::mutex mu_; member in absl::synchronization_internal::SimpleSemaphore
Dwaiter.h119 pthread_mutex_t mu_;
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dpool_urbg.cc57 SpinLockHolder l(&mu_); // Always uncontested. in Init()
63 void Fill(uint8_t* out, size_t bytes) ABSL_LOCKS_EXCLUDED(mu_);
67 inline T Generate() ABSL_LOCKS_EXCLUDED(mu_);
69 inline void MaybeRefill() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_) { in MaybeRefill()
78 uint32_t state_[kState] ABSL_GUARDED_BY(mu_); // First to satisfy alignment.
79 SpinLock mu_; member in absl::random_internal::__anon0c3cfc510111::RandenPoolEntry
81 size_t next_ ABSL_GUARDED_BY(mu_);
86 SpinLockHolder l(&mu_); in Generate()
93 SpinLockHolder l(&mu_); in Generate()
100 SpinLockHolder l(&mu_); in Generate()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/internal/
Dflag.cc70 explicit MutexRelock(absl::Mutex& mu) : mu_(mu) { mu_.Unlock(); } in MutexRelock()
71 ~MutexRelock() { mu_.Lock(); } in ~MutexRelock()
77 absl::Mutex& mu_; member in absl::flags_internal::__anonab29982e0111::MutexRelock
/third_party/googletest/googletest/include/gtest/internal/
Dgtest-port.h1244 std::lock_guard<std::mutex> lock(mu_);
1252 std::unique_lock<std::mutex> lock(mu_);
1257 std::mutex mu_;
/third_party/node/deps/googletest/include/gtest/internal/
Dgtest-port.h1299 std::lock_guard<std::mutex> lock(mu_);
1307 std::unique_lock<std::mutex> lock(mu_);
1312 std::mutex mu_;
/third_party/protobuf/src/google/protobuf/
Dgenerated_message_reflection.cc2375 mu_.Lock(); in AddArray()
2377 mu_.Unlock(); in AddArray()
2388 WrappedMutex mu_; member
/third_party/libabigail/tests/data/test-annotate/
Dtest15-pr18892.so.abi9363 <!-- __sanitizer::BlockingMutex __sanitizer::POSIXSymbolizer::mu_ -->
9364 …<var-decl name='mu_' type-id='type-id-314' visibility='default' filepath='../../.././libsanitizer/…
28558 <!-- __sanitizer::SpinMutex __sanitizer::AllocatorGlobalStats::mu_ -->
28559 …<var-decl name='mu_' type-id='type-id-1354' visibility='default' filepath='../../.././libsanitizer…
30220 …pinMutex __sanitizer::TwoLevelByteMap<2048ull, 4096ull, __sanitizer::NoOpMapUnmapCallback>::mu_ -->
30221 …<var-decl name='mu_' type-id='type-id-154' visibility='default' filepath='../../.././libsanitizer/…
35876 …!-- __sanitizer::BlockingMutex* __sanitizer::GenericScopedLock<__sanitizer::BlockingMutex>::mu_ -->
35877 …<var-decl name='mu_' type-id='type-id-1326' visibility='default' filepath='../../.././libsanitizer…
39111 …__sanitizer::StaticSpinMutex* __sanitizer::GenericScopedLock<__sanitizer::StaticSpinMutex>::mu_ -->
39112 …<var-decl name='mu_' type-id='type-id-1356' visibility='default' filepath='../../.././libsanitizer…
[all …]
/third_party/libabigail/tests/data/test-read-dwarf/
Dtest15-pr18892.so.abi5372 …<var-decl name='mu_' type-id='type-id-314' visibility='default' filepath='../../.././libsanitizer/…
16348 …<var-decl name='mu_' type-id='type-id-1354' visibility='default' filepath='../../.././libsanitizer…
17450 …<var-decl name='mu_' type-id='type-id-154' visibility='default' filepath='../../.././libsanitizer/…
21212 …<var-decl name='mu_' type-id='type-id-1326' visibility='default' filepath='../../.././libsanitizer…
23292 …<var-decl name='mu_' type-id='type-id-1356' visibility='default' filepath='../../.././libsanitizer…
23465 …<var-decl name='mu_' type-id='type-id-1382' visibility='default' filepath='../../.././libsanitizer…
24396 …<var-decl name='mu_' type-id='type-id-1361' visibility='default' filepath='../../.././libsanitizer…
25994 …<var-decl name='mu_' type-id='type-id-1754' visibility='default' filepath='../../.././libsanitizer…
26041 …<var-decl name='mu_' type-id='type-id-1382' visibility='default' filepath='../../.././libsanitizer…