/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" 32 ** Function: Mutex 39 Mutex::Mutex () 45 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 52 ** Function: ~Mutex 59 Mutex::~Mutex () [all...] |
CondVar.h | 27 #include "Mutex.h" 66 void wait (Mutex& mutex); 79 bool wait (Mutex& mutex, long millisec);
|
/frameworks/rs/ |
rsMutex.h | 26 class Mutex { 28 Mutex(); 29 ~Mutex();
|
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...] |
/frameworks/ex/variablespeed/jni/ |
no_synchronization.h | 23 // The sola_time_scaler (which is the code that uses this mutex class) is 27 // fake mutex that does nothing. 29 class Mutex { 31 Mutex() {} 32 virtual ~Mutex() {} 37 DISALLOW_COPY_AND_ASSIGN(Mutex); 42 explicit MutexLock(Mutex* mu) : mu_(mu) {} 46 Mutex* const mu_;
|
/frameworks/native/include/utils/ |
Mutex.h | 37 * Simple mutex class. The implementation is system-dependent. 39 * The mutex must be unlocked by the thread that locked it. They are not 42 class Mutex { 49 Mutex(); 50 Mutex(const char* name); 51 Mutex(int type, const char* name = NULL); 52 ~Mutex(); 54 // lock or unlock the mutex 61 // Manages the mutex automatically. It'll be locked when Autolock is 65 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); [all...] |
/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...] |
Mutex.cpp | 18 * Encapsulate a mutex for thread synchronization. 21 #include "Mutex.h" 27 ** Function: Mutex 34 Mutex::Mutex () 40 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 47 ** Function: ~Mutex 54 Mutex::~Mutex () [all...] |
CondVar.h | 23 #include "Mutex.h" 62 void wait (Mutex& mutex); 75 bool wait (Mutex& mutex, long millisec);
|
/external/webkit/Source/JavaScriptCore/wtf/ |
ThreadingNone.cpp | 45 Mutex::Mutex() { } 46 Mutex::~Mutex() { } 47 void Mutex::lock() { } 48 bool Mutex::tryLock() { return false; } 49 void Mutex::unlock() { } 53 void ThreadCondition::wait(Mutex&) { } 54 bool ThreadCondition::timedWait(Mutex&, double) { return false; }
|
/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...] |
/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/chromium/sdch/open-vcdiff/src/ |
mutex.h | 33 // A simple mutex wrapper, supporting locks and read-write locks. 67 // function that tries to acquire this mutex -- but that all happens 68 // before this mutex's constructor has run. (This can happen even if 69 // the mutex and the function that uses the mutex are in the same .cc 70 // file.) Basically, because Mutex does non-trivial work in its 74 // The solution used here is to pair the actual mutex primitive with a 75 // bool that is set to true when the mutex is dynamically initialized. 76 // (Before that it's false.) Then we modify all mutex routines to 78 // it to true (which happens after the Mutex constructor has run. [all...] |
/external/open-vcdiff/gflags/src/ |
mutex.h | 33 // A simple mutex wrapper, supporting locks and read-write locks. 46 // problems when we have multiple versions of Mutex in each shared object. 70 // function that tries to acquire this mutex -- but that all happens 71 // before this mutex's constructor has run. (This can happen even if 72 // the mutex and the function that uses the mutex are in the same .cc 73 // file.) Basically, because Mutex does non-trivial work in its 77 // The solution used here is to pair the actual mutex primitive with a 78 // bool that is set to true when the mutex is dynamically initialized. 79 // (Before that it's false.) Then we modify all mutex routines t [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
tsan_mutex.h | 39 class Mutex { 41 explicit Mutex(MutexType type, StatType stat_type); 42 ~Mutex(); 61 Mutex(const Mutex&); 62 void operator = (const Mutex&); 65 typedef GenericScopedLock<Mutex> Lock; 66 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.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...] |
/external/openfst/src/include/fst/ |
lock.h | 51 class Mutex { 53 Mutex() {} 56 DISALLOW_COPY_AND_ASSIGN(Mutex); 61 MutexLock(Mutex *) {} 69 ReaderMutexLock(Mutex *) {}
|
/frameworks/base/libs/hwui/thread/ |
Barrier.h | 31 Mutex::Autolock l(mLock); 37 Mutex::Autolock l(mLock); 42 Mutex::Autolock l(mLock); 51 mutable Mutex mLock;
|
/frameworks/native/services/surfaceflinger/ |
Barrier.h | 32 Mutex::Autolock _l(lock); 37 Mutex::Autolock _l(lock); 41 Mutex::Autolock _l(lock); 48 mutable Mutex lock;
|
/external/icu4c/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/av/include/private/media/ |
AudioEffectShared.h | 37 Mutex lock; 43 : lock(Mutex::SHARED), clientIndex(0), serverIndex(0) {}
|
/frameworks/native/include/private/binder/ |
Static.h | 31 extern Mutex gProcessMutex; 35 extern Mutex gDefaultServiceManagerLock;
|
/frameworks/native/libs/binder/ |
Static.cpp | 29 Mutex gProcessMutex; 49 Mutex gDefaultServiceManagerLock;
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
tsan_test_util.h | 32 class Mutex { 36 explicit Mutex(Type type = Normal); 37 ~Mutex(); 55 Mutex(const Mutex&); 56 void operator = (const Mutex&); 96 void Create(const Mutex &m); 97 void Destroy(const Mutex &m); 98 void Lock(const Mutex &m); 99 bool TryLock(const Mutex &m) [all...] |