Home
last modified time | relevance | path

Searched refs:Mutex (Results 1 – 25 of 1184) sorted by relevance

12345678910>>...48

/external/curl/tests/data/
Dtest155422 -> Mutex lock
23 <- Mutex unlock
24 -> Mutex lock
25 <- Mutex unlock
26 -> Mutex lock
27 <- Mutex unlock
28 -> Mutex lock
29 <- Mutex unlock
30 -> Mutex lock
31 <- Mutex unlock
[all …]
/external/gflags/src/
Dmutex.h157 class Mutex {
164 inline Mutex();
169 explicit inline Mutex(LinkerInitialized);
172 inline ~Mutex();
200 explicit Mutex(Mutex* /*ignored*/) {} in Mutex() argument
202 Mutex(const Mutex&);
203 void operator=(const Mutex&);
219 Mutex::Mutex() : mutex_(0) { } in Mutex() function
220 Mutex::Mutex(Mutex::LinkerInitialized) : mutex_(0) { } in Mutex() function
221 Mutex::~Mutex() { assert(mutex_ == 0); } in ~Mutex()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/re2/util/
Dmutex.h42 class Mutex {
44 inline Mutex();
45 inline ~Mutex();
61 Mutex(Mutex *ignored);
63 Mutex(const Mutex&) = delete;
64 Mutex& operator=(const Mutex&) = delete;
69 Mutex::Mutex() { InitializeSRWLock(&mutex_); } in Mutex() function
70 Mutex::~Mutex() { } in ~Mutex()
71 void Mutex::Lock() { AcquireSRWLockExclusive(&mutex_); } in Lock()
72 void Mutex::Unlock() { ReleaseSRWLockExclusive(&mutex_); } in Unlock()
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dwarn-thread-safety-parsing.cpp29 class LOCKABLE Mutex { class
47 Mutex mu;
48 Mutex getMu() { in getMu()
51 Mutex * getMuPointer() { in getMuPointer()
65 Mutex mu1;
67 Mutex mu2;
70 Mutex* muPointer;
71 Mutex** muDoublePointer = & muPointer;
72 Mutex& muRef = mu1;
79 Mutex foomu;
[all …]
/external/deqp/framework/delibs/decpp/
DdeMutex.hpp37 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!
64 ScopedLock (Mutex& mutex);
71 Mutex& m_mutex;
88 inline void Mutex::lock (void) throw() in lock()
102 inline void Mutex::unlock (void) throw() in unlock()
114 inline bool Mutex::tryLock (void) throw() in tryLock()
[all …]
/external/llvm-project/compiler-rt/test/tsan/
Dcustom_mutex4.cpp15 std::aligned_storage<sizeof(Mutex), alignof(Mutex)>::type mu1_store; in main()
16 Mutex* mu1 = reinterpret_cast<Mutex*>(&mu1_store); in main()
17 new(&mu1_store) Mutex(false, __tsan_mutex_linker_init); in main()
19 mu1->~Mutex(); in main()
22 std::aligned_storage<sizeof(Mutex), alignof(Mutex)>::type mu2_store; in main()
23 Mutex* mu2 = reinterpret_cast<Mutex*>(&mu2_store); in main()
24 new(&mu2_store) Mutex(false, 0, __tsan_mutex_not_static); in main()
26 mu2->~Mutex(); in main()
Dcustom_mutex5.cpp10 std::aligned_storage<sizeof(Mutex), alignof(Mutex)>::type mu1_store; in main()
11 Mutex* mu1 = reinterpret_cast<Mutex*>(&mu1_store); in main()
12 new(&mu1_store) Mutex(false, 0); in main()
14 mu1->~Mutex(); in main()
17 std::aligned_storage<sizeof(Mutex), alignof(Mutex)>::type mu2_store; in main()
18 Mutex* mu2 = reinterpret_cast<Mutex*>(&mu2_store); in main()
20 Mutex(false, __tsan_mutex_not_static, __tsan_mutex_not_static); in main()
22 mu2->~Mutex(); in main()
/external/clang/test/SemaCXX/
Dwarn-thread-safety-parsing.cpp27 class LOCKABLE Mutex { class
45 Mutex mu;
46 Mutex getMu() { in getMu()
49 Mutex * getMuPointer() { in getMuPointer()
63 Mutex mu1;
65 Mutex mu2;
68 Mutex* muPointer;
69 Mutex** muDoublePointer = & muPointer;
70 Mutex& muRef = mu1;
77 Mutex foomu;
[all …]
/external/pigweed/pw_sync/public/pw_sync/
Dmutex.h37 class PW_LOCKABLE("pw::sync::Mutex") Mutex {
41 Mutex();
42 ~Mutex();
43 Mutex(const Mutex&) = delete;
44 Mutex(Mutex&&) = delete;
45 Mutex& operator=(const Mutex&) = delete;
46 Mutex& operator=(Mutex&&) = delete;
80 using pw_sync_Mutex = pw::sync::Mutex;
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/synchronization/internal/
Dmutex_nonprod.cc199 Mutex::Mutex() {} in Mutex() function in absl::Mutex
201 Mutex::~Mutex() {} in ~Mutex()
203 void Mutex::Lock() { impl()->Lock(); } in Lock()
205 void Mutex::Unlock() { impl()->Unlock(); } in Unlock()
207 bool Mutex::TryLock() { return impl()->TryLock(); } in TryLock()
209 void Mutex::ReaderLock() { Lock(); } in ReaderLock()
211 void Mutex::ReaderUnlock() { Unlock(); } in ReaderUnlock()
213 void Mutex::Await(const Condition& cond) { impl()->Await(cond); } in Await()
215 void Mutex::LockWhen(const Condition& cond) { in LockWhen()
220 bool Mutex::AwaitWithDeadline(const Condition& cond, absl::Time deadline) { in AwaitWithDeadline()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/synchronization/internal/
Dmutex_nonprod.cc194 Mutex::Mutex() {} in Mutex() function in absl::Mutex
196 Mutex::~Mutex() {} in ~Mutex()
198 void Mutex::Lock() { impl()->Lock(); } in Lock()
200 void Mutex::Unlock() { impl()->Unlock(); } in Unlock()
202 bool Mutex::TryLock() { return impl()->TryLock(); } in TryLock()
204 void Mutex::ReaderLock() { Lock(); } in ReaderLock()
206 void Mutex::ReaderUnlock() { Unlock(); } in ReaderUnlock()
208 void Mutex::Await(const Condition& cond) { impl()->Await(cond); } in Await()
210 void Mutex::LockWhen(const Condition& cond) { in LockWhen()
215 bool Mutex::AwaitWithDeadline(const Condition& cond, absl::Time deadline) { in AwaitWithDeadline()
[all …]
/external/abseil-cpp/absl/synchronization/internal/
Dmutex_nonprod.cc194 Mutex::Mutex() {} in Mutex() function in absl::Mutex
196 Mutex::~Mutex() {} in ~Mutex()
198 void Mutex::Lock() { impl()->Lock(); } in Lock()
200 void Mutex::Unlock() { impl()->Unlock(); } in Unlock()
202 bool Mutex::TryLock() { return impl()->TryLock(); } in TryLock()
204 void Mutex::ReaderLock() { Lock(); } in ReaderLock()
206 void Mutex::ReaderUnlock() { Unlock(); } in ReaderUnlock()
208 void Mutex::Await(const Condition& cond) { impl()->Await(cond); } in Await()
210 void Mutex::LockWhen(const Condition& cond) { in LockWhen()
215 bool Mutex::AwaitWithDeadline(const Condition& cond, absl::Time deadline) { in AwaitWithDeadline()
[all …]
/external/rust/crates/parking_lot/src/
Dmutex.rs87 pub type Mutex<T> = lock_api::Mutex<RawMutex, T>; typedef
92 pub const fn const_mutex<T>(val: T) -> Mutex<T> { in const_mutex()
93 Mutex::const_new(<RawMutex as lock_api::RawMutex>::INIT, val) in const_mutex()
114 use crate::{Condvar, Mutex};
123 struct Packet<T>(Arc<(Mutex<T>, Condvar)>);
133 let m = Mutex::new(()); in smoke()
143 let m = Arc::new(Mutex::new(0)); in lots_and_lots()
145 fn inc(m: &Mutex<u32>) { in lots_and_lots()
176 let m = Mutex::new(()); in try_lock()
182 let m = Mutex::new(NonCopy(10)); in test_into_inner()
[all …]
/external/pigweed/pw_sync_stl/public/pw_sync_stl/
Dmutex_inline.h20 inline Mutex::Mutex() : native_type_() {} in Mutex() function
22 inline Mutex::~Mutex() {} in ~Mutex()
24 inline void Mutex::lock() { native_type_.lock(); } in lock()
26 inline bool Mutex::try_lock() { return native_type_.try_lock(); } in try_lock()
28 inline void Mutex::unlock() { native_type_.unlock(); } in unlock()
30 inline Mutex::native_handle_type Mutex::native_handle() { return native_type_; } in native_handle()
/external/angle/third_party/abseil-cpp/absl/synchronization/
Dmutex.h131 class ABSL_LOCKABLE Mutex {
139 Mutex();
152 explicit constexpr Mutex(absl::ConstInitType);
154 ~Mutex();
460 static void IncrementSynchSem(Mutex *mu, base_internal::PerThreadSynch *w);
461 static bool DecrementSynchSem(Mutex *mu, base_internal::PerThreadSynch *w,
490 Mutex(const volatile Mutex * /*ignored*/) {} // NOLINT(runtime/explicit) in Mutex() argument
492 Mutex(const Mutex&) = delete;
493 Mutex& operator=(const Mutex&) = delete;
525 explicit MutexLock(Mutex *mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { in MutexLock()
[all …]
/external/openscreen/third_party/abseil/src/absl/synchronization/
Dmutex.h131 class ABSL_LOCKABLE Mutex {
139 Mutex();
152 explicit constexpr Mutex(absl::ConstInitType);
154 ~Mutex();
460 static inline void IncrementSynchSem(Mutex *mu,
463 Mutex *mu, base_internal::PerThreadSynch *w,
492 Mutex(const volatile Mutex * /*ignored*/) {} // NOLINT(runtime/explicit) in Mutex() function
494 Mutex(const Mutex&) = delete;
495 Mutex& operator=(const Mutex&) = delete;
527 explicit MutexLock(Mutex *mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { in MutexLock()
[all …]
/external/pigweed/pw_sync/
Dmutex_facade_test.cc34 TEST(Mutex, LockUnlock) { in TEST() argument
35 pw::sync::Mutex mutex; in TEST()
42 Mutex static_mutex;
43 TEST(Mutex, LockUnlockStatic) { in TEST() argument
50 TEST(Mutex, TryLockUnlock) { in TEST() argument
51 pw::sync::Mutex mutex; in TEST()
61 TEST(Mutex, LockUnlockInC) { in TEST() argument
62 pw::sync::Mutex mutex; in TEST()
67 TEST(Mutex, TryLockUnlockInC) { in TEST() argument
68 pw::sync::Mutex mutex; in TEST()
/external/libtextclassifier/abseil-cpp/absl/synchronization/
Dmutex.h139 class ABSL_LOCKABLE Mutex {
147 Mutex();
160 explicit constexpr Mutex(absl::ConstInitType);
162 ~Mutex();
477 static inline void IncrementSynchSem(Mutex *mu,
480 Mutex *mu, base_internal::PerThreadSynch *w,
510 Mutex(const volatile Mutex * /*ignored*/) {} // NOLINT(runtime/explicit) in Mutex() argument
512 Mutex(const Mutex&) = delete;
513 Mutex& operator=(const Mutex&) = delete;
540 explicit MutexLock(Mutex *mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { in MutexLock()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/synchronization/
Dmutex.h139 class ABSL_LOCKABLE Mutex {
147 Mutex();
160 explicit constexpr Mutex(absl::ConstInitType);
162 ~Mutex();
477 static inline void IncrementSynchSem(Mutex *mu,
480 Mutex *mu, base_internal::PerThreadSynch *w,
510 Mutex(const volatile Mutex * /*ignored*/) {} // NOLINT(runtime/explicit) in Mutex() function
512 Mutex(const Mutex&) = delete;
513 Mutex& operator=(const Mutex&) = delete;
540 explicit MutexLock(Mutex *mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { in MutexLock()
[all …]
/external/abseil-cpp/absl/synchronization/
Dmutex.h139 class ABSL_LOCKABLE Mutex {
147 Mutex();
160 explicit constexpr Mutex(absl::ConstInitType);
162 ~Mutex();
478 static inline void IncrementSynchSem(Mutex *mu,
481 Mutex *mu, base_internal::PerThreadSynch *w,
511 Mutex(const volatile Mutex * /*ignored*/) {} // NOLINT(runtime/explicit) in Mutex() function
513 Mutex(const Mutex&) = delete;
514 Mutex& operator=(const Mutex&) = delete;
541 explicit MutexLock(Mutex *mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { in MutexLock()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/synchronization/
Dmutex.h139 class ABSL_LOCKABLE Mutex {
147 Mutex();
160 explicit constexpr Mutex(absl::ConstInitType);
162 ~Mutex();
478 static inline void IncrementSynchSem(Mutex *mu,
481 Mutex *mu, base_internal::PerThreadSynch *w,
511 Mutex(const volatile Mutex * /*ignored*/) {} // NOLINT(runtime/explicit) in Mutex() function
513 Mutex(const Mutex&) = delete;
514 Mutex& operator=(const Mutex&) = delete;
541 explicit MutexLock(Mutex *mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { in MutexLock()
[all …]
/external/pigweed/pw_sync_embos/public/pw_sync_embos/
Dmutex_inline.h23 inline Mutex::Mutex() : native_type_() { OS_CreateRSema(&native_type_); } in Mutex() function
25 inline Mutex::~Mutex() { OS_DeleteRSema(&native_type_); } in ~Mutex()
27 inline void Mutex::lock() { in lock()
33 inline bool Mutex::try_lock() { in try_lock()
38 inline void Mutex::unlock() { in unlock()
43 inline Mutex::native_handle_type Mutex::native_handle() { return native_type_; } in native_handle()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gprpp/
Dsync.h40 class Mutex {
42 Mutex() { gpr_mu_init(&mu_); } in Mutex() function
43 ~Mutex() { gpr_mu_destroy(&mu_); } in ~Mutex()
45 Mutex(const Mutex&) = delete;
46 Mutex& operator=(const Mutex&) = delete;
58 explicit MutexLock(Mutex* mu) : mu_(mu->get()) { gpr_mu_lock(mu_); } in MutexLock()
71 explicit ReleasableMutexLock(Mutex* mu) : mu_(mu->get()) { gpr_mu_lock(mu_); } in ReleasableMutexLock()
108 int Wait(Mutex* mu) { return Wait(mu, gpr_inf_future(GPR_CLOCK_REALTIME)); } in Wait()
109 int Wait(Mutex* mu, const gpr_timespec& deadline) { in Wait()
114 void WaitUntil(Mutex* mu, Predicate pred) { in WaitUntil()
[all …]
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_test_util.h32 class Mutex {
44 explicit Mutex(Type type = Normal);
45 ~Mutex();
63 Mutex(const Mutex&);
64 void operator = (const Mutex&);
104 void Create(const Mutex &m);
105 void Destroy(const Mutex &m);
106 void Lock(const Mutex &m);
107 bool TryLock(const Mutex &m);
108 void Unlock(const Mutex &m);
[all …]
/external/llvm-project/compiler-rt/lib/tsan/tests/rtl/
Dtsan_test_util.h31 class Mutex {
43 explicit Mutex(Type type = Normal);
44 ~Mutex();
62 Mutex(const Mutex&);
63 void operator = (const Mutex&);
103 void Create(const Mutex &m);
104 void Destroy(const Mutex &m);
105 void Lock(const Mutex &m);
106 bool TryLock(const Mutex &m);
107 void Unlock(const Mutex &m);
[all …]

12345678910>>...48