/external/icu/icu4c/source/common/ |
H A D | mutex.h | 33 // should instantiate a Mutex object while doing so. You should make your own 43 // Mutex mutex(&myMutex); // or no args for the global lock 48 // Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function 49 // returning a Mutex. This is a common mistake which silently slips through the 53 class U_COMMON_API Mutex : public UMemory { class in inherits:UMemory 55 inline Mutex(UMutex *mutex = NULL); 56 inline ~Mutex(); 61 Mutex(const Mutex &other); // forbid copying of this class 62 Mutex 65 inline Mutex::Mutex(UMutex *mutex) function in class:Mutex [all...] |
/external/deqp/framework/delibs/decpp/ |
H A D | deMutex.hpp | 35 * Mutex class provides standard mutual exclusion lock functionality. 37 class Mutex class in namespace:de 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) function in class:de::Mutex 49 Mutex::~Mutex (void)
|
/external/compiler-rt/test/tsan/ |
H A D | ignore_sync.cc | 9 pthread_mutex_t Mutex = PTHREAD_MUTEX_INITIALIZER; variable 13 pthread_mutex_lock(&Mutex); 15 pthread_mutex_unlock(&Mutex); 23 pthread_mutex_lock(&Mutex); 25 pthread_mutex_unlock(&Mutex);
|
H A D | mutex_annotations.cc | 8 class Mutex { class 34 Mutex m;
|
/external/regex-re2/util/ |
H A D | mutex.h | 50 class Mutex { class in namespace:re2 52 // Create a Mutex that is not held by anybody. 53 inline Mutex(); 56 inline ~Mutex(); 66 inline void ReaderUnlock(); // Release a read share of this Mutex 74 // Catch the error of writing Mutex when intending MutexLock. 75 Mutex(Mutex *ignored); 77 Mutex(const Mutex 95 Mutex::Mutex() : mutex_(0) { } function in class:re2::Mutex 108 Mutex::Mutex() { SAFE_PTHREAD(pthread_rwlock_init(&mutex_, NULL)); } function in class:re2::Mutex 123 Mutex::Mutex() { SAFE_PTHREAD(pthread_mutex_init(&mutex_, NULL)); } function in class:re2::Mutex 134 Mutex::Mutex() { InitializeCriticalSection(&mutex_); } function in class:re2::Mutex [all...] |
/external/ltp/testcases/kernel/io/disktest/ |
H A D | threading.h | 108 #define LOCK(Mutex) WaitForSingleObject((void *) Mutex, INFINITE) 109 #define UNLOCK(Mutex) ReleaseMutex((void *) Mutex) 113 #define LOCK(Mutex) \ 114 pthread_cleanup_push((void *) pthread_mutex_unlock, (void *) &Mutex); \ 115 pthread_mutex_lock(&Mutex) 116 #define UNLOCK(Mutex) \ 117 pthread_mutex_unlock(&Mutex); \
|
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_mutex.h | 43 class Mutex { class in namespace:__tsan 45 explicit Mutex(MutexType type, StatType stat_type); 46 ~Mutex(); 65 Mutex(const Mutex&); 66 void operator = (const Mutex&); 69 typedef GenericScopedLock<Mutex> Lock; 70 typedef GenericScopedReadLock<Mutex> ReadLock;
|
/external/swiftshader/third_party/LLVM/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.acquire(); } 37 bool holds(const sys::Mutex& lock) const { return &M == &lock; }
|
/external/parameter-framework/asio/include/asio/detail/ |
H A D | scoped_lock.hpp | 23 template <typename Mutex> 32 scoped_lock(Mutex& m, adopt_lock_t) 39 explicit scoped_lock(Mutex& m) 80 Mutex& mutex() 87 Mutex& mutex_;
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
H A D | scoped_lock.hpp | 23 template <typename Mutex> 32 scoped_lock(Mutex& m, adopt_lock_t) 39 explicit scoped_lock(Mutex& m) 80 Mutex& mutex() 87 Mutex& mutex_;
|
/external/v8/src/base/platform/ |
H A D | mutex.h | 23 // Mutex 35 // while still owned by some thread. The Mutex class is non-copyable. 37 class V8_BASE_EXPORT Mutex final { 39 Mutex(); 40 ~Mutex(); 92 DISALLOW_COPY_AND_ASSIGN(Mutex); 96 // POD Mutex initialized lazily (i.e. the first time Pointer() is called). 101 // LockGuard<Mutex> guard(my_mutex.Pointer()); 105 typedef LazyStaticInstance<Mutex, DefaultConstructTrait<Mutex>, [all...] |
H A D | condition-variable.h | 28 // on a Mutex first. The |Wait()| and |WaitFor()| operations atomically release 51 void Wait(Mutex* mutex); 60 bool WaitFor(Mutex* mutex, const TimeDelta& rel_time) WARN_UNUSED_RESULT; 75 Mutex* mutex() { return &mutex_; } 81 Mutex mutex_; 108 // LockGuard<Mutex> lock_guard(&my_mutex);
|
H A D | mutex.cc | 113 Mutex::Mutex() { function in class:v8::base::Mutex 121 Mutex::~Mutex() { 127 void Mutex::Lock() { 133 void Mutex::Unlock() { 139 bool Mutex::TryLock() {
|
/external/llvm/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(); } 37 bool holds(const sys::Mutex& lock) const { return &M == &lock; }
|
/external/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(); } 37 bool holds(const sys::Mutex& lock) const { return &M == &lock; }
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
H A D | tsan_test_util.h | 32 class Mutex { class 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 [all...] |
/external/protobuf/src/google/protobuf/stubs/ |
H A D | mutex.h | 45 // A Mutex is a non-reentrant (aka non-recursive) mutex. At most one thread T 46 // may hold a mutex at a given time. If T attempts to Lock() the same Mutex 48 class LIBPROTOBUF_EXPORT Mutex { class in namespace:google::protobuf::internal 50 // Create a Mutex that is not held by anybody. 51 Mutex(); 54 ~Mutex(); 56 // Block if necessary until this Mutex is free, then acquire it exclusively. 59 // Release this Mutex. Caller must hold it exclusively. 62 // Crash if this Mutex is not held exclusively by this thread. 70 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Mutex); [all...] |
/external/deqp/framework/platform/lnx/ |
H A D | tcuLnx.hpp | 50 de::Mutex m_mutex;
|
/external/v8/src/ |
H A D | locked-queue.h | 32 mutable base::Mutex head_mutex_; 33 base::Mutex tail_mutex_;
|
/external/clang/test/SemaCXX/ |
H A D | warn-thread-safety-parsing.cpp | 27 class LOCKABLE Mutex { class 45 Mutex mu; 46 Mutex getMu() { 49 Mutex * getMuPointer() { 63 Mutex mu1; 65 Mutex mu2; 68 Mutex* muPointer; 69 Mutex** muDoublePointer = & muPointer; 70 Mutex& muRef = mu1; 77 Mutex foom [all...] |
/external/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_mutex_test.cc | 96 TEST(Mutex, Write) { 97 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); 98 TestData<Mutex> data(&mtx); 101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data); 106 TEST(Mutex, ReadWrite) { 107 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); 108 TestData<Mutex> data(&mtx); 111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data); 116 TEST(Mutex, SpinWrite) {
|
/external/v8/src/libplatform/ |
H A D | task-queue.cc | 18 base::LockGuard<base::Mutex> guard(&lock_); 25 base::LockGuard<base::Mutex> guard(&lock_); 35 base::LockGuard<base::Mutex> guard(&lock_); 52 base::LockGuard<base::Mutex> guard(&lock_); 61 base::LockGuard<base::Mutex> guard(&lock_);
|
/external/clang/test/Misc/ |
H A D | ast-dump-color.cpp | 18 class __attribute__((lockable)) Mutex { class 65 //CHECK: {{^}}[[Blue]]|-[[RESET]][[GREEN]]CXXRecordDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]line:18:1[[RESET]], [[Yellow]]line:25:1[[RESET]]> [[Yellow]]line:18:33[[RESET]] class[[CYAN]] Mutex[[RESET]] definition{{$}} 67 //CHECK: {{^}}[[Blue]]| |-[[RESET]][[GREEN]]CXXRecordDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:1[[RESET]], [[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] implicit class[[CYAN]] Mutex[[RESET]]{{$}} 78 //CHECK: {{^}}[[Blue]]| |-[[RESET]][[GREEN]]CXXConstructorDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]line:18:33[[RESET]]> [[Yellow]]col:33[[RESET]] implicit used[[CYAN]] Mutex[[RESET]] [[Green]]'void (void) noexcept'[[RESET]] inline{{.*$}} 80 //CHECK: {{^}}[[Blue]]| |-[[RESET]][[GREEN]]CXXConstructorDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] implicit constexpr[[CYAN]] Mutex[[RESET]] [[Green]]'void (const class Mutex &)'[[RESET]] inline{{ .*$}} 81 //CHECK: {{^}}[[Blue]]| | `-[[RESET]][[GREEN]]ParmVarDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] [[Green]]'const class Mutex &'[[RESET]]{{$}} 82 //CHECK: {{^}}[[Blue]]| `-[[RESET]][[GREEN]]CXXConstructorDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] implicit constexpr[[CYAN]] Mutex[[RESET]] [[Green]]'void (class Mutex &&)'[[RESET]] inline{{ .*$}} 83 //CHECK: {{^}}[[Blue]]| `-[[RESET]][[GREEN]]ParmVarDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:33[[RESET]]> [[Yellow]]col:33[[RESET]] [[Green]]'class Mutex [all...] |
/external/v8/src/compiler-dispatcher/ |
H A D | optimizing-compile-dispatcher.h | 50 base::LockGuard<base::Mutex> access_input_queue(&input_queue_mutex_); 79 base::Mutex input_queue_mutex_; 85 base::Mutex output_queue_mutex_; 92 base::Mutex ref_count_mutex_;
|