/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deMutex.hpp | 35 * Mutex class provides standard mutual exclusion lock functionality. 37 class Mutex class 40 Mutex (deUint32 flags = 0); 41 ~Mutex (void); 48 Mutex (const Mutex& other); // Not allowed! 49 Mutex& operator= (const Mutex& other); // Not allowed! 57 * ScopedLock provides helper for maintaining Mutex lock for the duration 64 ScopedLock (Mutex [all...] |
H A D | deMutex.cpp | 34 * \param flags Mutex flags as described in deMutex.h. 37 Mutex::Mutex (deUint32 flags) in Mutex() function in de::Mutex 49 Mutex::~Mutex (void) in ~Mutex()
|
/third_party/rust/crates/regex/bench/src/ |
H A D | bench.rs | 140 use std::sync::Mutex; 150 static ref RE: Mutex<Regex> = Mutex::new($re); 151 static ref TEXT: Mutex<Text> = Mutex::new(text!($haystack)); 185 use std::sync::Mutex; 188 static ref RE: Mutex<Regex> = Mutex::new(regex!($pattern)); 189 static ref TEXT: Mutex<Text> = Mutex [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/ |
H A D | mutex.h | 19 // This header file defines a `Mutex` -- a mutually exclusive lock -- and the 24 // Unlike a `std::mutex`, the Abseil `Mutex` provides the following additional 26 // * Conditional predicates intrinsic to the `Mutex` object 32 // MutexLock - An RAII wrapper to acquire and release a `Mutex` for exclusive/ 36 // - An RAII wrapper to acquire and release a `Mutex` for shared/read 47 // depends on state protected by the `Mutex` to become true. 55 // this header file is limited, as a result. Please consult the Mutex guide for 83 // Mutex 86 // A `Mutex` is a non-reentrant (aka non-recursive) Mutually Exclusive lock 91 // A `Mutex` ha 131 class ABSL_LOCKABLE Mutex { global() class 490 Mutex(const volatile Mutex * /*ignored*/) {} // NOLINT(runtime/explicit) Mutex() function in absl::Mutex 934 inline Mutex::Mutex() : mu_(0) { Mutex() function in absl::Mutex 938 inline constexpr Mutex::Mutex(absl::ConstInitType) : mu_(0) {} Mutex() function in absl::Mutex [all...] |
H A D | lifetime_test.cc | 28 // A two-threaded test which checks that Mutex, CondVar, and Notification have 41 void ThreadOne(absl::Mutex* mutex, absl::CondVar* condvar, in ThreadOne() 59 void ThreadTwo(absl::Mutex* mutex, absl::CondVar* condvar, in ThreadTwo() 76 void RunTests(absl::Mutex* mutex, absl::CondVar* condvar) { in RunTests() 77 absl::Mutex default_mutex; in RunTests() 94 absl::Mutex mutex; in TestLocals() 100 ABSL_CONST_INIT absl::Mutex const_init_mutex(absl::kConstInit); 133 extern absl::Mutex early_const_init_mutex; 143 ABSL_CONST_INIT absl::Mutex early_const_init_mutex(absl::kConstInit); 146 // a Mutex [all...] |
H A D | mutex_test.cc | 72 absl::Mutex mu; 344 static void EndTest(int *c0, int *c1, absl::Mutex *mu, absl::CondVar *cv, in EndTest() 358 absl::Mutex mu2; in RunTestCommon() 387 // Like RunTest(), but sets an invariant on the tested Mutex and 410 absl::Mutex mu; 425 TEST(Mutex, CondVarWaitSignalsAwait) { in TEST() 428 absl::Mutex barrier_mu; in TEST() 431 absl::Mutex release_mu; in TEST() 438 // Thread A. Sets barrier, waits for release using Mutex::Await, then in TEST() 455 // Thread A is now blocked on release by way of Mutex in TEST() [all...] |
H A D | mutex.cc | 108 static inline bool EvalConditionAnnotated(const Condition *cond, Mutex *mu, 163 // Returns the Mutex delay on iteration `c` depending on the given `mode`. 238 enum { // Mutex and CondVar events passed as "ev" to PostSynchEvent 239 // Mutex events 308 // client who enables/disables invariants/logging on a Mutex does so 309 // while the Mutex is not being concurrently accessed by others. 376 // Forget the mapping from the object (Mutex or CondVar) at address addr 419 // Called when an event "ev" occurs on a Mutex of CondVar "obj" 441 // We are currently inside of Mutex Lock/Unlock and are ignoring all in PostSynchEvent() 453 Mutex *m in PostSynchEvent() [all...] |
/third_party/rust/crates/nix/test/ |
H A D | test.rs | 68 use parking_lot::{Mutex, RwLock, RwLockWriteGuard}; 89 pub static ref FORK_MTX: Mutex<()> = Mutex::new(()); 92 pub static ref GROUPS_MTX: Mutex<()> = Mutex::new(()); 94 pub static ref KMOD_MTX: Mutex<()> = Mutex::new(()); 96 pub static ref PTSNAME_MTX: Mutex<()> = Mutex::new(()); 98 pub static ref SIGNAL_MTX: Mutex<()> [all...] |
/third_party/node/src/ |
H A D | histogram-inl.h | 13 Mutex::ScopedLock lock(mutex_); in Reset() 21 Mutex::ScopedLock lock(mutex_); in Add() 30 Mutex::ScopedLock lock(mutex_); in Count() 35 Mutex::ScopedLock lock(mutex_); in Min() 40 Mutex::ScopedLock lock(mutex_); in Max() 45 Mutex::ScopedLock lock(mutex_); in Mean() 50 Mutex::ScopedLock lock(mutex_); in Stddev() 55 Mutex::ScopedLock lock(mutex_); in Percentile() 63 Mutex::ScopedLock lock(mutex_); in Percentiles() 73 Mutex in Record() [all...] |
H A D | node_watchdog.cc | 105 Mutex::ScopedLock lock(SigintWatchdogHelper::GetInstanceActionMutex()); in SigintWatchdog() 114 Mutex::ScopedLock lock(SigintWatchdogHelper::GetInstanceActionMutex()); in ~SigintWatchdog() 151 Mutex::ScopedLock lock(SigintWatchdogHelper::GetInstanceActionMutex()); in Start() 162 Mutex::ScopedLock lock(SigintWatchdogHelper::GetInstanceActionMutex()); in Stop() 224 Mutex::ScopedLock lock(SigintWatchdogHelper::GetInstanceActionMutex()); in HandleInterrupt() 268 Mutex::ScopedLock list_lock(instance.list_mutex_); in InformWatchdogsAboutSignal() 294 Mutex::ScopedLock lock(mutex_); in Start() 332 Mutex::ScopedLock lock(mutex_); in Stop() 335 Mutex::ScopedLock list_lock(list_mutex_); in Stop() 378 Mutex in HasPendingSignal() [all...] |
H A D | node_platform.cc | 21 Mutex* platform_workers_mutex; 37 Mutex::ScopedLock lock(*worker_data->platform_workers_mutex); in PlatformWorkerThread() 174 Mutex platform_workers_mutex; in WorkerThreadsTaskRunner() 177 Mutex::ScopedLock lock(platform_workers_mutex); in WorkerThreadsTaskRunner() 361 Mutex::ScopedLock lock(per_isolate_mutex_); in RegisterIsolate() 372 Mutex::ScopedLock lock(per_isolate_mutex_); in RegisterIsolate() 380 Mutex::ScopedLock lock(per_isolate_mutex_); in UnregisterIsolate() 392 Mutex::ScopedLock lock(per_isolate_mutex_); in AddIsolateFinishedCallback() 408 Mutex::ScopedLock lock(per_isolate_mutex_); in Shutdown() 511 Mutex in ForIsolate() [all...] |
/third_party/node/deps/v8/src/base/platform/ |
H A D | mutex.cc | 147 Mutex::Mutex() { in Mutex() function in v8::base::Mutex 155 Mutex::~Mutex() { in ~Mutex() 161 void Mutex::Lock() { in Lock() 167 void Mutex::Unlock() { in Unlock() 173 bool Mutex::TryLock() { in TryLock() 308 Mutex::Mutex() : native_handle_(SRWLOCK_INIT) { 315 Mutex [all...] |
H A D | mutex.h | 30 // Mutex - a replacement for std::mutex 42 // while still owned by some thread. The Mutex class is non-copyable. 44 class V8_BASE_EXPORT Mutex final { 46 Mutex(); 47 Mutex(const Mutex&) = delete; 48 Mutex& operator=(const Mutex&) = delete; 49 ~Mutex(); 107 // POD Mutex initialize [all...] |
H A D | condition-variable.cc | 47 Mutex lock; in ~ConditionVariable() 76 void ConditionVariable::Wait(Mutex* mutex) { in Wait() 85 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) { in WaitFor() 141 void ConditionVariable::Wait(Mutex* mutex) { 150 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) { 188 void ConditionVariable::Wait(Mutex* mutex) { 192 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) {
|
/third_party/icu/icu4c/source/common/ |
H A D | mutex.h | 32 * Mutex is a helper class for convenient locking and unlocking of a UMutex. 34 * Creating a local scope Mutex will lock a UMutex, holding the lock until the Mutex 46 * Mutex mutex(&myMutex); // or no args for the global lock 51 * Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function 52 * returning a Mutex. This is a common mistake which silently slips through the 56 class U_COMMON_API Mutex : public UMemory { class 58 Mutex(UMutex *mutex = nullptr) : fMutex(mutex) { in Mutex() function in Mutex 61 ~Mutex() { in ~Mutex() 65 Mutex(cons [all...] |
H A D | servnotf.cpp | 33 Mutex lmx(¬ifyLock); in ~ICUNotifier() 50 Mutex lmx(¬ifyLock); in addListener() 87 Mutex lmx(¬ifyLock); in removeListener() 109 Mutex lmx(¬ifyLock); in notifyChanged()
|
/third_party/node/deps/icu-small/source/common/ |
H A D | mutex.h | 32 * Mutex is a helper class for convenient locking and unlocking of a UMutex. 34 * Creating a local scope Mutex will lock a UMutex, holding the lock until the Mutex 46 * Mutex mutex(&myMutex); // or no args for the global lock 51 * Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function 52 * returning a Mutex. This is a common mistake which silently slips through the 56 class U_COMMON_API Mutex : public UMemory { class 58 Mutex(UMutex *mutex = nullptr) : fMutex(mutex) { in Mutex() function in Mutex 61 ~Mutex() { in ~Mutex() 65 Mutex(cons [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | mutex.h | 32 * Mutex is a helper class for convenient locking and unlocking of a UMutex. 34 * Creating a local scope Mutex will lock a UMutex, holding the lock until the Mutex 46 * Mutex mutex(&myMutex); // or no args for the global lock 51 * Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function 52 * returning a Mutex. This is a common mistake which silently slips through the 56 class U_COMMON_API Mutex : public UMemory { class 58 Mutex(UMutex *mutex = nullptr) : fMutex(mutex) { in Mutex() function in Mutex 61 ~Mutex() { in ~Mutex() 65 Mutex(cons [all...] |
/third_party/node/src/tracing/ |
H A D | node_trace_writer.cc | 38 Mutex::ScopedLock scoped_lock(stream_mutex_); in WriteSuffix() 57 Mutex::ScopedLock scoped_lock(request_mutex_); in ~NodeTraceWriter() 100 Mutex::ScopedLock scoped_lock(stream_mutex_); in AppendTraceEvent() 120 Mutex::ScopedLock stream_scoped_lock(stream_mutex_); in FlushPrivate() 133 Mutex::ScopedLock request_scoped_lock(request_mutex_); in FlushPrivate() 140 Mutex::ScopedLock scoped_lock(request_mutex_); in Flush() 145 Mutex::ScopedLock stream_mutex_lock(stream_mutex_); in Flush() 167 Mutex::ScopedLock lock(request_mutex_); in WriteToFile() 201 Mutex::ScopedLock scoped_lock(request_mutex_); in AfterWrite() 233 Mutex in ExitSignalCb() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/MCJIT/ |
H A D | MCJIT.cpp | 91 std::lock_guard<sys::Mutex> locked(lock); in ~MCJIT() 103 std::lock_guard<sys::Mutex> locked(lock); in addModule() 112 std::lock_guard<sys::Mutex> locked(lock); in removeModule() 139 std::lock_guard<sys::Mutex> locked(lock); in setObjectCache() 146 std::lock_guard<sys::Mutex> locked(lock); in emitObject() 188 std::lock_guard<sys::Mutex> locked(lock); in generateCodeForModule() 237 std::lock_guard<sys::Mutex> locked(lock); in finalizeLoadedModules() 253 std::lock_guard<sys::Mutex> locked(lock); in finalizeObject() 268 std::lock_guard<sys::Mutex> locked(lock); in finalizeModule() 295 std::lock_guard<sys::Mutex> locke in findModuleForSymbol() [all...] |
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | mutex.h | 93 // Mutex is a natural type to wrap. As both google and other organization have 101 // Crash if this Mutex is not held exclusively by this thread. 113 using Mutex = WrappedMutex; 118 explicit MutexLock(Mutex *mu) : mu_(mu) { this->mu_->Lock(); } in MutexLock() 121 Mutex *const mu_; 132 explicit MutexLockMaybe(Mutex *mu) : in MutexLockMaybe() 136 Mutex *const mu_; 172 using internal::Mutex;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | Parallel.cpp | 47 std::lock_guard<std::mutex> Lock(Mutex); in ThreadPoolExecutor() 61 std::lock_guard<std::mutex> Lock(Mutex); in stop() 86 std::lock_guard<std::mutex> Lock(Mutex); 95 std::unique_lock<std::mutex> Lock(Mutex); in work() 108 std::mutex Mutex; member in llvm::parallel::detail::__anon24328::ThreadPoolExecutor
|
/third_party/googletest/googletest/include/gtest/internal/ |
H A D | gtest-port.h | 217 // Mutex, MutexLock, ThreadLocal, GetThreadCount() 1350 // Mutex and ThreadLocal have already been imported into the namespace. 1355 // Mutex implements mutex on Windows platforms. It is used in conjunction 1358 // Mutex mutex; 1363 // A static Mutex *must* be defined or declared using one of the following 1368 // (A non-static Mutex is defined/declared in the usual way). 1369 class GTEST_API_ Mutex { class 1380 explicit Mutex(StaticConstructorSelector /*dummy*/) {} in Mutex() function in testing::internal::Mutex 1382 Mutex(); 1383 ~Mutex(); 1696 class Mutex : public MutexBase { global() class 1698 Mutex() { Mutex() function in testing::internal::Mutex 1861 class Mutex { global() class 1863 Mutex() {} Mutex() function in testing::internal::Mutex [all...] |
/third_party/node/deps/googletest/include/gtest/internal/ |
H A D | gtest-port.h | 228 // Mutex, MutexLock, ThreadLocal, GetThreadCount() 1375 // Mutex and ThreadLocal have already been imported into the namespace. 1381 // Mutex implements mutex on Windows platforms. It is used in conjunction 1384 // Mutex mutex; 1389 // A static Mutex *must* be defined or declared using one of the following 1394 // (A non-static Mutex is defined/declared in the usual way). 1395 class GTEST_API_ Mutex { class 1406 explicit Mutex(StaticConstructorSelector /*dummy*/) {} in Mutex() function in testing::internal::Mutex 1408 Mutex(); 1409 ~Mutex(); 1722 class Mutex : public MutexBase { global() class 1724 Mutex() { Mutex() function in testing::internal::Mutex 1887 class Mutex { global() class 1889 Mutex() {} Mutex() function in testing::internal::Mutex [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
H A D | MutexGuard.h | 1 //===-- Support/MutexGuard.h - Acquire/Release Mutex In Scope ---*- C++ -*-===// 10 // This file defines a guard for a block of code that ensures a Mutex is locked 18 #include "llvm/Support/Mutex.h" 21 /// Instances of this class acquire a given Mutex Lock when constructed and 24 /// destruction of the object will always release the Mutex and thus avoid 26 /// @brief Guard a section of code with a Mutex. 28 sys::Mutex &M; 32 MutexGuard(sys::Mutex &m) : M(m) { M.lock(); } in MutexGuard() 37 bool holds(const sys::Mutex& lock) const { return &M == &lock; } in holds()
|