/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
simple_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. 62 // function that tries to acquire this mutex -- but that all happens 63 // before this mutex's constructor has run. (This can happen even if 64 // the mutex and the function that uses the mutex are in the same .cc 65 // file.) Basically, because Mutex does non-trivial work in its 69 // The solution used here is to pair the actual mutex primitive with a 70 // bool that is set to true when the mutex is dynamically initialized. 71 // (Before that it's false.) Then we modify all mutex routines t [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
simple_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. 62 // function that tries to acquire this mutex -- but that all happens 63 // before this mutex's constructor has run. (This can happen even if 64 // the mutex and the function that uses the mutex are in the same .cc 65 // file.) Basically, because Mutex does non-trivial work in its 69 // The solution used here is to pair the actual mutex primitive with a 70 // bool that is set to true when the mutex is dynamically initialized. 71 // (Before that it's false.) Then we modify all mutex routines t [all...] |
/external/chromium_org/mojo/public/cpp/utility/lib/ |
mutex.cc | 5 #include "mojo/public/cpp/utility/mutex.h" 14 Mutex::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/ |
mutex.h | 26 class Mutex { 29 Mutex() : mutex_(internal::kPthreadMutexInitializer) {} 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_ [all...] |
/external/chromium_org/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/ |
mutex.h | 13 typedef base::Lock Mutex; 17 explicit MutexLock(Mutex* m) : auto_lock_(*m) {}
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_mutex.h | 40 class Mutex { 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/libnfc-nci/halimpl/bcm2079x/adaptation/ |
CondVar.h | 27 #include "Mutex.h" 66 void wait (Mutex& mutex); 79 bool wait (Mutex& mutex, long millisec);
|
/packages/apps/Nfc/nci/jni/ |
CondVar.h | 23 #include "Mutex.h" 62 void wait (Mutex& mutex); 75 bool wait (Mutex& mutex, long millisec);
|
/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...] |
/sdk/emulator/opengl/shared/emugl/common/ |
mutex.h | 28 class Mutex { 31 Mutex() { 40 ~Mutex() { 48 // Acquire the mutex. 57 // Release the mutex. 66 // Helper class to lock / unlock a mutex automatically on scope 70 AutoLock(Mutex& mutex) : mMutex(&mutex) { 78 Mutex* mMutex [all...] |
mutex_unittest.cpp | 15 #include "emugl/common/mutex.h" 24 TEST(Mutex, ConstructionDestruction) { 25 Mutex lock; 29 TEST(Mutex, LockUnlock) { 30 Mutex lock; 36 TEST(Mutex, AutoLock) { 37 Mutex mutex; local 38 Mutex::AutoLock lock(mutex); 46 Mutex mutex; member in struct:emugl::ThreadParams [all...] |
/external/chromium_org/third_party/leveldatabase/src/port/ |
port_posix.cc | 22 Mutex::Mutex() { PthreadCall("init mutex", pthread_mutex_init(&mu_, NULL)); } 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/ |
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/third_party/WebKit/Source/wtf/ |
ThreadingPrimitives.h | 74 class WTF_EXPORT Mutex { 75 WTF_MAKE_NONCOPYABLE(Mutex); WTF_MAKE_FAST_ALLOCATED; 77 Mutex(); 78 ~Mutex(); 90 typedef Locker<Mutex> MutexLocker; 95 MutexTryLocker(Mutex& mutex) : m_mutex(mutex), m_locked(mutex.tryLock()) { } 105 Mutex& m_mutex [all...] |
/external/chromium_org/v8/src/platform/ |
mutex.h | 22 // Mutex 25 // data from being simultaneously accessed by multiple threads. A mutex offers 27 // - A calling thread owns a mutex from the time that it successfully calls 29 // - When a thread owns a mutex, all other threads will block (for calls to 31 // attempt to claim ownership of the mutex. 32 // A calling thread must not own the mutex prior to calling |Lock()| or 33 // |TryLock()|. The behavior of a program is undefined if a mutex is destroyed 34 // while still owned by some thread. The Mutex class is non-copyable. 36 class Mutex V8_FINAL { 38 Mutex(); [all...] |
/external/lldb/include/lldb/Core/ |
ThreadSafeValue.h | 17 #include "lldb/Host/Mutex.h" 30 m_mutex (Mutex::eMutexTypeRecursive) 36 m_mutex (Mutex::eMutexTypeRecursive) 49 Mutex::Locker locker(m_mutex); 55 // Call this if you have already manually locked the mutex using the 66 Mutex::Locker locker(m_mutex); 70 // Call this if you have already manually locked the mutex using the 78 Mutex & 86 mutable Mutex m_mutex;
|
/frameworks/av/media/libstagefright/webm/ |
LinkedBlockingQueue.h | 21 #include <utils/Mutex.h> 29 Mutex mLock; 33 Mutex::Autolock autolock(mLock); 54 Mutex::Autolock autolock(mLock); 59 Mutex::Autolock autolock(mLock); 72 Mutex::Autolock autolock(mLock);
|
/frameworks/native/libs/gui/tests/ |
DisconnectWaiter.h | 23 #include <utils/Mutex.h> 40 Mutex::Autolock lock(mMutex); 48 Mutex::Autolock lock(mMutex); 54 Mutex::Autolock lock(mMutex); 63 Mutex::Autolock lock(mMutex); 69 Mutex mMutex;
|
FrameWaiter.h | 31 Mutex::Autolock lock(mMutex); 39 Mutex::Autolock lock(mMutex); 46 Mutex mMutex;
|
/external/chromium_org/third_party/mesa/src/src/egl/main/ |
eglglobals.h | 44 _EGLMutex *Mutex;
|
/external/mesa3d/src/egl/main/ |
eglglobals.h | 44 _EGLMutex *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 | 36 Mutex::Autolock _l(lock); 43 Mutex::Autolock _l(lock); 51 Mutex::Autolock _l(lock); 58 mutable Mutex lock;
|
/external/chromium_org/third_party/icu/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...] |
/external/chromium_org/third_party/leveldatabase/port/ |
port_chromium.cc | 17 Mutex::Mutex() { 20 Mutex::~Mutex() { 23 void Mutex::Lock() { 27 void Mutex::Unlock() { 31 void Mutex::AssertHeld() { 35 CondVar::CondVar(Mutex* mu)
|