/external/icu/icu4c/source/common/ |
mutex.h | 12 // File: mutex.h 14 // Lightweight C++ wrapper for umtx_ C mutex functions 33 // should instantiate a Mutex object while doing so. You should make your own 34 // private mutex where possible. 43 // Mutex mutex(&myMutex); // or no args for the global lock 45 // // When 'mutex' goes out of scope and gets destroyed here, the lock is released 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 th [all...] |
/system/chre/platform/linux/include/chre/target_platform/ |
mutex_base_impl.h | 20 #include "chre/platform/mutex.h" 24 inline Mutex::Mutex() {} 26 inline Mutex::~Mutex() {} 28 inline void Mutex::lock() { 32 inline bool Mutex::try_lock() { 36 inline void Mutex::unlock() {
|
/system/chre/platform/slpi/include/chre/target_platform/ |
mutex_base_impl.h | 20 #include "chre/platform/mutex.h" 24 inline Mutex::Mutex() { 28 inline Mutex::~Mutex() { 32 inline void Mutex::lock() { 36 inline bool Mutex::try_lock() { 40 inline void Mutex::unlock() {
|
/packages/apps/TV/jni/ |
mutex.h | 24 class Mutex { 26 Mutex() { 35 ~Mutex() { 39 // A simple class that locks a given mutex on construction 43 Autolock(Mutex &mutex) : lock(&mutex) { 50 Mutex *lock; 57 Mutex(const Mutex&) [all...] |
/frameworks/rs/ |
rsMutex.h | 26 class Mutex { 28 Mutex(); 29 ~Mutex();
|
rsMutex.cpp | 22 Mutex::Mutex() { 25 Mutex::~Mutex() { 29 bool Mutex::init() { 32 ALOGE("Mutex::Mutex init failure"); 38 bool Mutex::lock() { 42 ALOGE("Mutex: error %i locking.", status); 48 bool Mutex::unlock() [all...] |
/system/chre/platform/include/chre/platform/ |
mutex.h | 26 * Provides an implementation of a Mutex. The public API meets the BasicLockable 29 * mutex implementation. 31 class Mutex : public MutexBase, 35 * Allows the platform to do any mutex initialization at construction time. 37 Mutex(); 40 * Allows the platform to do any mutex deinitialization at destruction time. 42 ~Mutex(); 45 * Locks the mutex, or blocks if it is held by another thread. Illegal to call 51 * Attempts to lock the mutex. If it is already held by some other thread, 55 * @return true if the mutex was acquired, false otherwis [all...] |
condition_variable.h | 20 #include "chre/platform/mutex.h" 54 * notified. The provided mutex will be unlocked and the thread will be 55 * blocked until the condition variable has notified. The mutex is relocked 58 * @param The currently locked mutex. 60 void wait(Mutex& mutex); 66 * @param mutex The currently locked mutex. 71 bool wait_for(Mutex& mutex, Nanoseconds timeout) [all...] |
/system/nfc/halimpl/bcm2079x/adaptation/ |
Mutex.h | 21 * Encapsulate a mutex for thread synchronization. 28 class Mutex { 32 ** Function: Mutex 39 Mutex(); 43 ** Function: ~Mutex 50 ~Mutex(); 56 ** Description: Block the thread and try lock the mutex. 67 ** Description: Unlock a mutex to unblock a thread. 78 ** Description: Try to lock the mutex. 80 ** Returns: True if the mutex is locked [all...] |
Mutex.cpp | 21 * Encapsulate a mutex for thread synchronization. 26 #include "Mutex.h" 33 ** Function: Mutex 40 Mutex::Mutex() { 44 ALOGE("Mutex::Mutex: fail init; error=0x%X", res); 50 ** Function: ~Mutex 57 Mutex::~Mutex() { [all...] |
CondVar.h | 27 #include "Mutex.h" 62 void wait(Mutex& mutex); 74 bool wait(Mutex& mutex, long millisec);
|
/packages/apps/Nfc/nci/jni/ |
Mutex.h | 18 * Encapsulate a mutex for thread synchronization. 25 class Mutex 30 ** Function: Mutex 37 Mutex (); 42 ** Function: ~Mutex 49 ~Mutex (); 56 ** Description: Block the thread and try lock the mutex. 68 ** Description: Unlock a mutex to unblock a thread. 80 ** Description: Try to lock the mutex. 82 ** Returns: True if the mutex is locked [all...] |
CondVar.h | 23 #include "Mutex.h" 62 void wait (Mutex& mutex); 75 bool wait (Mutex& mutex, long millisec);
|
Mutex.cpp | 18 * Encapsulate a mutex for thread synchronization. 21 #include "Mutex.h" 31 ** Function: Mutex 38 Mutex::Mutex () 44 ALOGE("Mutex::Mutex: fail init; error=0x%X", res); 51 ** Function: ~Mutex 58 Mutex::~Mutex () [all...] |
/external/deqp/framework/delibs/decpp/ |
deMutex.hpp | 35 * Mutex class provides standard mutual exclusion lock functionality. 37 class Mutex 40 Mutex (deUint32 flags = 0); 41 ~Mutex (void); 48 Mutex (const Mutex& other); // Not allowed! 49 Mutex& operator= (const Mutex& other); // Not allowed! 55 * \brief Scoped mutex lock. 57 * ScopedLock provides helper for maintaining Mutex lock for the duratio [all...] |
deMutex.cpp | 34 * \param flags Mutex flags as described in deMutex.h. 35 * DE_MUTEX_RECURSIVE flag enables recursive mutex. 37 Mutex::Mutex (deUint32 flags) 49 Mutex::~Mutex (void)
|
/external/compiler-rt/test/tsan/ |
ignore_sync.cc | 9 pthread_mutex_t Mutex = PTHREAD_MUTEX_INITIALIZER; 13 pthread_mutex_lock(&Mutex); 15 pthread_mutex_unlock(&Mutex); 23 pthread_mutex_lock(&Mutex); 25 pthread_mutex_unlock(&Mutex);
|
/external/regex-re2/util/ |
mutex.h | 6 * A simple mutex wrapper, supporting locks and read-write locks. 47 # error Need to implement mutex.h for your architecture, or #define NO_THREADS 50 class Mutex { 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) [all...] |
/system/core/libutils/include/utils/ |
Mutex.h | 40 * doesn't build for Win32 should use std::mutex and std::lock_guard instead. 42 * Simple mutex class. The implementation is system-dependent. 44 * The mutex must be unlocked by the thread that locked it. They are not 47 class Mutex { 54 Mutex(); 55 explicit Mutex(const char* name); 56 explicit Mutex(int type, const char* name = NULL); 57 ~Mutex(); 59 // lock or unlock the mutex 67 // Lock the mutex, but don't wait longer than timeoutNs (relative time) [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvarany/ |
wait.exception.pass.cpp | 3 #include <mutex> 13 struct Mutex 16 Mutex() = default; 17 ~Mutex() = default; 18 Mutex(const Mutex&) = delete; 19 Mutex& operator=(const Mutex&) = delete; 30 Mutex mut;
|
wait_for.exception.pass.cpp | 3 #include <mutex> 13 struct Mutex 16 Mutex() = default; 17 ~Mutex() = default; 18 Mutex(const Mutex&) = delete; 19 Mutex& operator=(const Mutex&) = delete; 30 Mutex mut;
|
/external/ltp/testcases/kernel/io/disktest/ |
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/ |
tsan_mutex.h | 43 class Mutex { 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/llvm/include/llvm/Support/ |
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(); } 35 /// This is mostly used in assertions to validate that the correct mutex 37 bool holds(const sys::Mutex& lock) const { return &M == &lock; [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
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(); } 35 /// This is mostly used in assertions to validate that the correct mutex 37 bool holds(const sys::Mutex& lock) const { return &M == &lock; [all...] |