/external/chromium_org/third_party/icu/source/common/ |
H A D | mutex.h | 31 // should instantiate a Mutex object while doing so. You should make your own 41 // Mutex mutex(&myMutex); // or no args for the global lock 46 // Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function 47 // returning a Mutex. This is a common mistake which silently slips through the 51 class U_COMMON_API Mutex : public UMemory { class in inherits:UMemory 53 inline Mutex(UMutex *mutex = NULL); 54 inline ~Mutex(); 59 Mutex(const Mutex &other); // forbid copying of this class 60 Mutex 63 inline Mutex::Mutex(UMutex *mutex) function in class:Mutex [all...] |
/external/icu/icu4c/source/common/ |
H A D | mutex.h | 31 // should instantiate a Mutex object while doing so. You should make your own 41 // Mutex mutex(&myMutex); // or no args for the global lock 46 // Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function 47 // returning a Mutex. This is a common mistake which silently slips through the 51 class U_COMMON_API Mutex : public UMemory { class in inherits:UMemory 53 inline Mutex(UMutex *mutex = NULL); 54 inline ~Mutex(); 59 Mutex(const Mutex &other); // forbid copying of this class 60 Mutex 63 inline Mutex::Mutex(UMutex *mutex) function in class:Mutex [all...] |
/external/llvm/lib/Support/Unix/ |
H A D | RWMutex.inc | 19 #include "llvm/Support/Mutex.h" 29 RWMutexImpl::RWMutexImpl() : data_(new Mutex(false)) { } 32 delete static_cast<Mutex *>(data_); 36 return static_cast<Mutex *>(data_)->acquire(); 40 return static_cast<Mutex *>(data_)->release(); 44 return static_cast<Mutex *>(data_)->acquire(); 48 return static_cast<Mutex *>(data_)->release();
|
/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);
|
/external/chromium_org/third_party/re2/util/ |
H A D | mutex.h | 54 class Mutex { class in namespace:re2 56 // Create a Mutex that is not held by anybody. 57 inline Mutex(); 60 inline ~Mutex(); 70 inline void ReaderUnlock(); // Release a read share of this Mutex 78 // Catch the error of writing Mutex when intending MutexLock. 79 Mutex(Mutex *ignored); 81 Mutex(const Mutex 99 Mutex::Mutex() : mutex_(0) { } function in class:re2::Mutex 112 Mutex::Mutex() { SAFE_PTHREAD(pthread_rwlock_init(&mutex_, NULL)); } function in class:re2::Mutex 127 Mutex::Mutex() { SAFE_PTHREAD(pthread_mutex_init(&mutex_, NULL)); } function in class:re2::Mutex 138 Mutex::Mutex() { InitializeCriticalSection(&mutex_); } function in class:re2::Mutex [all...] |
/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/ceres-solver/internal/ceres/ |
H A D | mutex.h | 39 // problems when we have multiple versions of Mutex in each shared object. 66 // file.) Basically, because Mutex does non-trivial work in its 74 // it to true (which happens after the Mutex constructor has run.) 147 class Mutex { class in namespace:ceres::internal 149 // Create a Mutex that is not held by anybody. This constructor is 151 // See below for a recommendation for constructing global Mutex 153 inline Mutex(); 156 inline ~Mutex(); 168 inline void ReaderUnlock(); // Release a read share of this Mutex 184 // Catch the error of writing Mutex whe 185 Mutex(Mutex* /*ignored*/) {} function in class:ceres::internal::Mutex 204 Mutex::Mutex() : mutex_(0) { } function in class:ceres::internal::Mutex 216 Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSafe(); } function in class:ceres::internal::Mutex 233 Mutex::Mutex() { function in class:ceres::internal::Mutex 255 Mutex::Mutex() { function in class:ceres::internal::Mutex [all...] |
/external/lldb/include/lldb/Host/ |
H A D | Mutex.h | 1 //===-- Mutex.h -------------------------------------------------*- C++ -*-===// 24 /// @class Mutex Mutex.h "lldb/Host/Mutex.h" 27 class Mutex class in namespace:lldb_private 35 eMutexTypeNormal, ///< Mutex that can't recursively entered by the same thread 36 eMutexTypeRecursive ///< Mutex can be recursively entered by the same thread 40 /// @class Mutex::Locker 43 /// objects to have a mutex locked when an Mutex::Locker 45 /// when the Mutex [all...] |
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
H A D | Mutex.h | 29 class Mutex class 34 ** Function: Mutex 41 Mutex (); 46 ** Function: ~Mutex 53 ~Mutex ();
|
H A D | Mutex.cpp | 27 #include "Mutex.h" 32 ** Function: Mutex 39 Mutex::Mutex () function in class:Mutex 45 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 52 ** Function: ~Mutex 59 Mutex::~Mutex () 64 ALOGE ("Mutex [all...] |
H A D | CondVar.h | 27 #include "Mutex.h" 66 void wait (Mutex& mutex); 79 bool wait (Mutex& mutex, long millisec);
|
/external/libcxx/test/thread/thread.condition/thread.condition.condvarany/ |
H A D | wait.exception.pass.cpp | 13 struct Mutex struct 16 Mutex() = default; 17 ~Mutex() = default; 18 Mutex(const Mutex&) = delete; 19 Mutex& operator=(const Mutex&) = delete; 30 Mutex mut;
|
H A D | wait_for.exception.pass.cpp | 13 struct Mutex struct 16 Mutex() = default; 17 ~Mutex() = default; 18 Mutex(const Mutex&) = delete; 19 Mutex& operator=(const Mutex&) = delete; 30 Mutex mut;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
H A D | simple_mutex.h | 46 // problems when we have multiple versions of Mutex in each shared object. 65 // file.) Basically, because Mutex does non-trivial work in its 73 // it to true (which happens after the Mutex constructor has run.) 96 // the Mutex global destructor runs before some other global 101 // weird to a Mutex's memory after it is destroyed, but for a 147 class Mutex { class in namespace:MUTEX_NAMESPACE 152 // Create a Mutex that is not held by anybody. This constructor is 154 inline Mutex(); 155 // This constructor should be used for global, static Mutex objects. 159 inline Mutex(LinkerInitialize 188 Mutex(Mutex* /*ignored*/) {} function in class:MUTEX_NAMESPACE::Mutex 207 Mutex::Mutex() : mutex_(0) { } function in class:MUTEX_NAMESPACE::Mutex 208 Mutex::Mutex(Mutex::LinkerInitialized) : mutex_(0) { } function in class:MUTEX_NAMESPACE::Mutex 218 Mutex::Mutex() : destroy_(true) { function in class:MUTEX_NAMESPACE::Mutex 222 Mutex::Mutex(LinkerInitialized) : destroy_(false) { function in class:MUTEX_NAMESPACE::Mutex 240 Mutex::Mutex() : destroy_(true) { function in class:MUTEX_NAMESPACE::Mutex 244 Mutex::Mutex(Mutex::LinkerInitialized) : destroy_(false) { function in class:MUTEX_NAMESPACE::Mutex 263 Mutex::Mutex() : destroy_(true) { function in class:MUTEX_NAMESPACE::Mutex 267 Mutex::Mutex(Mutex::LinkerInitialized) : destroy_(false) { function in class:MUTEX_NAMESPACE::Mutex [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
H A D | simple_mutex.h | 46 // problems when we have multiple versions of Mutex in each shared object. 65 // file.) Basically, because Mutex does non-trivial work in its 73 // it to true (which happens after the Mutex constructor has run.) 96 // the Mutex global destructor runs before some other global 101 // weird to a Mutex's memory after it is destroyed, but for a 147 class Mutex { class in namespace:MUTEX_NAMESPACE 152 // Create a Mutex that is not held by anybody. This constructor is 154 inline Mutex(); 155 // This constructor should be used for global, static Mutex objects. 159 inline Mutex(LinkerInitialize 188 Mutex(Mutex* /*ignored*/) {} function in class:MUTEX_NAMESPACE::Mutex 207 Mutex::Mutex() : mutex_(0) { } function in class:MUTEX_NAMESPACE::Mutex 208 Mutex::Mutex(Mutex::LinkerInitialized) : mutex_(0) { } function in class:MUTEX_NAMESPACE::Mutex 218 Mutex::Mutex() : destroy_(true) { function in class:MUTEX_NAMESPACE::Mutex 222 Mutex::Mutex(LinkerInitialized) : destroy_(false) { function in class:MUTEX_NAMESPACE::Mutex 240 Mutex::Mutex() : destroy_(true) { function in class:MUTEX_NAMESPACE::Mutex 244 Mutex::Mutex(Mutex::LinkerInitialized) : destroy_(false) { function in class:MUTEX_NAMESPACE::Mutex 263 Mutex::Mutex() : destroy_(true) { function in class:MUTEX_NAMESPACE::Mutex 267 Mutex::Mutex(Mutex::LinkerInitialized) : destroy_(false) { function in class:MUTEX_NAMESPACE::Mutex [all...] |
/external/chromium_org/mojo/public/cpp/utility/lib/ |
H A D | mutex.cc | 14 Mutex::Mutex() { function in class:mojo::Mutex 26 Mutex::~Mutex() { 31 void Mutex::Lock() { 36 void Mutex::Unlock() { 41 bool Mutex::TryLock() { 47 void Mutex::AssertHeld() {
|
/external/chromium_org/mojo/public/cpp/utility/ |
H A D | mutex.h | 26 class Mutex { class in namespace:mojo 29 Mutex() : mutex_(internal::kPthreadMutexInitializer) {} function in class:mojo::Mutex 30 ~Mutex() { pthread_mutex_destroy(&mutex_); } 38 Mutex(); 39 ~Mutex(); 51 MOJO_DISALLOW_COPY_AND_ASSIGN(Mutex); 56 explicit MutexLock(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); } 60 Mutex* const mutex_;
|
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_mutex.h | 40 class Mutex { class in namespace:__tsan 42 explicit Mutex(MutexType type, StatType stat_type); 43 ~Mutex(); 62 Mutex(const Mutex&); 63 void operator = (const Mutex&); 66 typedef GenericScopedLock<Mutex> Lock; 67 typedef GenericScopedReadLock<Mutex> ReadLock;
|
/external/chromium_org/third_party/leveldatabase/src/port/ |
H A D | port_posix.cc | 22 Mutex::Mutex() { PthreadCall("init mutex", pthread_mutex_init(&mu_, NULL)); } function in class:leveldb::port::Mutex 24 Mutex::~Mutex() { PthreadCall("destroy mutex", pthread_mutex_destroy(&mu_)); } 26 void Mutex::Lock() { PthreadCall("lock", pthread_mutex_lock(&mu_)); } 28 void Mutex::Unlock() { PthreadCall("unlock", pthread_mutex_unlock(&mu_)); } 30 CondVar::CondVar(Mutex* mu)
|
/external/lldb/source/Core/ |
H A D | InputReaderStack.cpp | 23 m_input_readers_mutex (Mutex::eMutexTypeRecursive) 34 Mutex::Locker locker (m_input_readers_mutex); 43 Mutex::Locker locker (m_input_readers_mutex); 51 Mutex::Locker locker (m_input_readers_mutex); 60 Mutex::Locker locker (m_input_readers_mutex); 71 Mutex::Locker locker (m_input_readers_mutex); 76 Mutex &
|
/external/chromium_org/v8/src/base/platform/ |
H A D | mutex-unittest.cc | 12 TEST(Mutex, LockGuardMutex) { 13 Mutex mutex; 14 { LockGuard<Mutex> lock_guard(&mutex); } 15 { LockGuard<Mutex> lock_guard(&mutex); } 19 TEST(Mutex, LockGuardRecursiveMutex) { 29 TEST(Mutex, LockGuardLazyMutex) { 31 { LockGuard<Mutex> lock_guard(lazy_mutex.Pointer()); } 32 { LockGuard<Mutex> lock_guard(lazy_mutex.Pointer()); } 36 TEST(Mutex, LockGuardLazyRecursiveMutex) { 46 TEST(Mutex, MultipleMutexe [all...] |
H A D | mutex.h | 22 // Mutex 34 // while still owned by some thread. The Mutex class is non-copyable. 36 class Mutex FINAL { 38 Mutex(); 39 ~Mutex(); 91 DISALLOW_COPY_AND_ASSIGN(Mutex); 95 // POD Mutex initialized lazily (i.e. the first time Pointer() is called). 100 // LockGuard<Mutex> guard(my_mutex.Pointer()); 104 typedef LazyStaticInstance<Mutex, DefaultConstructTrait<Mutex>, [all...] |
/external/lldb/include/lldb/Core/ |
H A D | ThreadSafeValue.h | 17 #include "lldb/Host/Mutex.h" 30 m_mutex (Mutex::eMutexTypeRecursive) 36 m_mutex (Mutex::eMutexTypeRecursive) 49 Mutex::Locker locker(m_mutex); 66 Mutex::Locker locker(m_mutex); 78 Mutex & 86 mutable Mutex m_mutex;
|