/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
Mutex.h | 21 * Encapsulate a mutex for thread synchronization. 29 class Mutex 34 ** Function: Mutex 41 Mutex (); 46 ** Function: ~Mutex 53 ~Mutex (); 60 ** Description: Block the thread and try lock the mutex. 72 ** Description: Unlock a mutex to unblock a thread. 84 ** Description: Try to lock the mutex. 86 ** Returns: True if the mutex is locked [all...] |
Mutex.cpp | 21 * Encapsulate a mutex for thread synchronization. 27 #include "Mutex.h" 33 ** Function: Mutex 40 Mutex::Mutex () 46 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 53 ** Function: ~Mutex 60 Mutex::~Mutex () [all...] |
/external/deqp/framework/delibs/decpp/ |
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)
|
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...] |
/external/icu/icu4c/source/common/ |
mutex.h | 10 // File: mutex.h 12 // Lightweight C++ wrapper for umtx_ C mutex functions 31 // should instantiate a Mutex object while doing so. You should make your own 32 // private mutex where possible. 41 // Mutex mutex(&myMutex); // or no args for the global lock 43 // // When 'mutex' goes out of scope and gets destroyed here, the lock is released 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 th [all...] |
/frameworks/rs/ |
rsMutex.cpp | 23 Mutex::Mutex() { 26 Mutex::~Mutex() { 30 bool Mutex::init() { 33 ALOGE("Mutex::Mutex init failure"); 39 bool Mutex::lock() { 43 ALOGE("Mutex: error %i locking.", status); 49 bool Mutex::unlock() [all...] |
rsMutex.h | 26 class Mutex { 28 Mutex(); 29 ~Mutex();
|
/packages/apps/Nfc/nci/jni/ |
Mutex.cpp | 18 * Encapsulate a mutex for thread synchronization. 21 #include "Mutex.h" 30 ** Function: Mutex 37 Mutex::Mutex () 43 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 50 ** Function: ~Mutex 57 Mutex::~Mutex () [all...] |
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...] |
/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/mesa3d/src/egl/main/ |
eglglobals.h | 44 _EGLMutex *Mutex;
|
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
sync.h | 7 class Mutex 12 Mutex() { 15 ~Mutex() {
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
sync.h | 22 class Mutex 27 Mutex() { 30 ~Mutex() {
|
/external/clang/test/Misc/ |
ast-dump-color.cpp | 18 class __attribute__((lockable)) Mutex { 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{{$}} 66 //CHECK: {{^}}[[Blue]]| |-[[RESET]][[BLUE]]CapabilityAttr[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:22[[RESET]]> capability "mutex"{{$}} 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{{ .*$} [all...] |
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
wait.exception.pass.cpp | 14 #include <mutex> 24 struct Mutex 27 Mutex() = default; 28 ~Mutex() = default; 29 Mutex(const Mutex&) = delete; 30 Mutex& operator=(const Mutex&) = delete; 41 Mutex mut;
|
wait_for.exception.pass.cpp | 14 #include <mutex> 24 struct Mutex 27 Mutex() = default; 28 ~Mutex() = default; 29 Mutex(const Mutex&) = delete; 30 Mutex& operator=(const Mutex&) = delete; 41 Mutex mut;
|
/ndk/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/v8/src/base/platform/ |
mutex.cc | 5 #include "src/base/platform/mutex.h" 14 static V8_INLINE void InitializeNativeHandle(pthread_mutex_t* mutex) { 17 // Use an error checking mutex in debug mode. 23 result = pthread_mutex_init(mutex, &attr); 27 // Use a fast mutex (default attributes). 28 result = pthread_mutex_init(mutex, NULL); 35 static V8_INLINE void InitializeRecursiveNativeHandle(pthread_mutex_t* mutex) { 41 result = pthread_mutex_init(mutex, &attr); 49 static V8_INLINE void DestroyNativeHandle(pthread_mutex_t* mutex) { 50 int result = pthread_mutex_destroy(mutex); [all...] |
/system/core/include/utils/ |
Mutex.h | 38 * Simple mutex class. The implementation is system-dependent. 40 * The mutex must be unlocked by the thread that locked it. They are not 43 class Mutex { 50 Mutex(); 51 Mutex(const char* name); 52 Mutex(int type, const char* name = NULL); 53 ~Mutex(); 55 // lock or unlock the mutex 63 // lock the mutex, but don't wait longer than timeoutMilliseconds. 72 // Manages the mutex automatically. It'll be locked when Autolock i [all...] |
/external/compiler-rt/lib/tsan/benchmarks/ |
vts_many_threads_bench.cc | 31 class __attribute__((aligned(64))) Mutex { 33 Mutex() { pthread_mutex_init(&m_, NULL); } 34 ~Mutex() { pthread_mutex_destroy(&m_); } 43 Mutex mutexes[kNumMutexes];
|
/external/lldb/source/Host/common/ |
Mutex.cpp | 1 //===-- Mutex.cpp -----------------------------------------------*- C++ -*-===// 10 #include "lldb/Host/Mutex.h" 27 // Enable extra mutex error checking 59 // Make sure this isn't already in our initialized mutex set... 63 // Add the mutex to the initialized set 68 // Make sure this isn't already in our destroyed mutex set... 72 // Add the mutex to the destroyed set 76 // This function will return true if "m" is in the initialized mutex set 94 // This will create a scoped mutex locking object that doesn't have 95 // a mutex to lock. One will need to be provided using the Reset( [all...] |
/external/openfst/src/include/fst/ |
lock.h | 51 class Mutex { 53 Mutex() {} 56 DISALLOW_COPY_AND_ASSIGN(Mutex); 61 MutexLock(Mutex *) {} 69 ReaderMutexLock(Mutex *) {}
|
/external/ceres-solver/internal/ceres/ |
mutex.h | 31 // A simple mutex wrapper, supporting locks and read-write locks. 39 // problems when we have multiple versions of Mutex in each shared object. 63 // function that tries to acquire this mutex -- but that all happens 64 // before this mutex's constructor has run. (This can happen even if 65 // the mutex and the function that uses the mutex are in the same .cc 66 // file.) Basically, because Mutex does non-trivial work in its 70 // The solution used here is to pair the actual mutex primitive with a 71 // bool that is set to true when the mutex is dynamically initialized. 72 // (Before that it's false.) Then we modify all mutex routines t [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
tsan_mutex.cc | 20 // Simple reader-writer spin-mutex. Optimized for not-so-contended case. 25 // then Report mutex can be locked while under Threads mutex. 52 // If [i][j]==true, then one can lock mutex j while under mutex i. 120 Printf("Mutex %d participates in a cycle\n", i); 208 Mutex::Mutex(MutexType type, StatType stat_type) { 220 Mutex::~Mutex() { [all...] |