Home
last modified time | relevance | path

Searched refs:Mutex (Results 1 - 25 of 420) sorted by relevance

12345678910>>...17

/third_party/vk-gl-cts/framework/delibs/decpp/
H A DdeMutex.hpp35 * 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 DdeMutex.cpp34 * \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 Dbench.rs140 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 Dmutex.h19 // 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 Dlifetime_test.cc28 // 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 Dmutex_test.cc72 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 Dmutex.cc108 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 Dtest.rs68 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 Dhistogram-inl.h13 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 Dnode_watchdog.cc105 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 Dnode_platform.cc21 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 Dmutex.cc147 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 Dmutex.h30 // 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 Dcondition-variable.cc47 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 Dmutex.h32 * 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 Dservnotf.cpp33 Mutex lmx(&notifyLock); in ~ICUNotifier()
50 Mutex lmx(&notifyLock); in addListener()
87 Mutex lmx(&notifyLock); in removeListener()
109 Mutex lmx(&notifyLock); in notifyChanged()
/third_party/node/deps/icu-small/source/common/
H A Dmutex.h32 * 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 Dmutex.h32 * 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 Dnode_trace_writer.cc38 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 DMCJIT.cpp91 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 Dmutex.h93 // 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 DParallel.cpp47 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 Dgtest-port.h217 // 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 Dgtest-port.h228 // 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 DMutexGuard.h1 //===-- 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()

Completed in 18 milliseconds

12345678910>>...17