/external/dbus/dbus/ |
dbus-threads.c | 35 /** This is used for the no-op default mutex pointer, just to be distinct from #NULL */ 40 /** This is used for the no-op default mutex pointer, just to be distinct from #NULL */ 54 * Creates a new mutex 55 * or creates a no-op mutex if threads are not initialized. 59 * If possible, the mutex returned by this function is recursive, to 63 * to point to the mutex location allows the threading 64 * module to swap out dummy mutexes for a real mutex so libraries 67 * @param location_p the location of the new mutex, can return #NULL on OOM 88 * Creates a new mutex 89 * or creates a no-op mutex if threads are not initialized [all...] |
/external/clang/test/SemaCXX/ |
warn-thread-safety-negative.cpp | 30 class __attribute__((lockable)) Mutex { 40 const Mutex& operator!() const { return *this; } 50 Mutex mu; 63 Mutex mu; 68 mu.Lock(); // expected-warning {{acquiring mutex 'mu' requires negative capability '!mu'}} 69 baz(); // expected-warning {{cannot call function 'baz' while mutex 'mu' is held}} 90 mu.Lock(); // expected-warning {{acquiring mutex 'mu' requires negative capability '!mu'}} 109 Mutex &mutex(); 116 EXCLUSIVE_LOCKS_REQUIRED(F->mutex()) UNLOCK_FUNCTION(F->mutex()) { [all...] |
/external/mesa3d/src/gallium/state_trackers/wgl/ |
stw_framebuffer.h | 45 * This mutex has two purposes: 49 * It is OK to lock this mutex while holding the stw_device::fb_mutex lock, 52 pipe_mutex mutex; member in struct:stw_framebuffer 57 * Note that even access to immutable members implies acquiring the mutex 97 * This is protected by stw_device::fb_mutex, not the mutex above. 100 * acquiring the stw_framebuffer::mutex of the framebuffer to be deleted. 103 * It is not necessary to aquire the mutex above to navigate the linked list 114 * This function will acquire stw_framebuffer::mutex. stw_framebuffer_release 130 * This function will acquire stw_framebuffer::mutex. stw_framebuffer_release 140 * This function will acquire stw_framebuffer::mutex. stw_framebuffer_releas [all...] |
/external/valgrind/drd/ |
drd_pthread_intercepts.c | 213 pthread_mutex_t mutex; member in struct:__anon25385 265 static __always_inline void DRD_(ignore_mutex_ordering)(pthread_mutex_t *mutex) 268 mutex, 0, 0, 0, 0); 274 pthread_mutex_init(&sema->mutex, NULL); 275 DRD_(ignore_mutex_ordering)(&sema->mutex); 282 pthread_mutex_destroy(&sema->mutex); 288 pthread_mutex_lock(&sema->mutex); 290 pthread_cond_wait(&sema->cond, &sema->mutex); 292 pthread_mutex_unlock(&sema->mutex); 297 pthread_mutex_lock(&sema->mutex); [all...] |
drd_cond.c | 70 p->mutex = 0; 80 if (p->mutex) 83 q = &(DRD_(clientobj_get)(p->mutex, ClientMutex)->mutex); 207 void DRD_(cond_pre_wait)(const Addr cond, const Addr mutex) 230 p->mutex = mutex; 232 else if (p->mutex != mutex) 236 .cond = cond, .mutex1 = p->mutex, .mutex2 = mutex } [all...] |
/external/libcxx/src/ |
mutex.cpp | 1 //===------------------------- mutex.cpp ----------------------------------===// 11 #include "mutex" 24 mutex::~mutex() 30 mutex::lock() 34 __throw_system_error(ec, "mutex lock failed"); 38 mutex::try_lock() _NOEXCEPT 44 mutex::unlock() _NOEXCEPT 120 lock_guard<mutex> _(__m_); 126 unique_lock<mutex> lk(__m_) [all...] |
/external/opencv3/3rdparty/openexr/IlmThread/ |
IlmThreadMutex.h | 40 // class Mutex, class Lock 42 // Class Mutex is a wrapper for a system-dependent mutual exclusion 43 // mechanism. Actual locking and unlocking of a Mutex object must 48 // the mutex; destroying the Lock unlocks the mutex. 55 // Mutex mtx; // Create a Mutex object that is visible 63 // Lock lock (mtx); // Lock constructor locks the mutex 65 // } // leaving the block unlocks the mutex 86 class Mutex [all...] |
/external/valgrind/drd/tests/ |
tc09_bad_unlock.stderr.exp-glibc2.8 | 2 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. 6 mutex 0x........ was first observed at: 12 Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1. 16 mutex 0x........ was first observed at: 22 The object at address 0x........ is not a mutex. 27 Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. 30 mutex 0x........ was first observed at [all...] |
tc09_bad_unlock.stderr.exp-ppc | 2 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. 6 mutex 0x........ was first observed at: 12 Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1. 16 mutex 0x........ was first observed at: 22 The object at address 0x........ is not a mutex. 27 Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. 30 mutex 0x........ was first observed at [all...] |
tc09_bad_unlock.stderr.exp-solaris | 2 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. 6 mutex 0x........ was first observed at: 11 Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1. 15 mutex 0x........ was first observed at: 20 The object at address 0x........ is not a mutex. 25 Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. 28 mutex 0x........ was first observed at [all...] |
tc09_bad_unlock.stderr.exp-x86 | 2 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. 6 mutex 0x........ was first observed at: 12 Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1. 16 mutex 0x........ was first observed at: 22 The object at address 0x........ is not a mutex. 27 Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. 30 mutex 0x........ was first observed at [all...] |
recursive_mutex.stderr.exp-darwin | 3 Non-recursive mutex. 5 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. 9 mutex 0x........ was first observed at:
|
/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...] |
/prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/4.9/include/ |
condition_variable | 39 #include <mutex> 91 wait(unique_lock<mutex>& __lock); 95 wait(unique_lock<mutex>& __lock, _Predicate __p) 103 wait_until(unique_lock<mutex>& __lock, 109 wait_until(unique_lock<mutex>& __lock, 123 wait_until(unique_lock<mutex>& __lock, 135 wait_for(unique_lock<mutex>& __lock, 141 wait_for(unique_lock<mutex>& __lock, 153 __wait_until_impl(unique_lock<mutex>& __lock, 165 __gthread_cond_timedwait(&_M_cond, __lock.mutex()->native_handle() [all...] |
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/ |
types.pass.cpp | 14 // template <class Mutex> 18 // typedef Mutex mutex_type; 28 static_assert((std::is_same<std::shared_lock<std::mutex>::mutex_type, 29 std::mutex>::value), "");
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/ |
native_handle.pass.cpp | 12 // <mutex> 14 // class mutex; 19 #include <mutex> 24 std::mutex m;
|
/external/libhevc/common/ |
ithread.h | 51 WORD32 ithread_mutex_init(void *mutex); 53 WORD32 ithread_mutex_destroy(void *mutex); 55 WORD32 ithread_mutex_lock(void *mutex); 57 WORD32 ithread_mutex_unlock(void *mutex);
|
/external/libmpeg2/common/ |
ithread.h | 53 WORD32 ithread_mutex_init(void *mutex); 55 WORD32 ithread_mutex_destroy(void *mutex); 57 WORD32 ithread_mutex_lock(void *mutex); 59 WORD32 ithread_mutex_unlock(void *mutex);
|
/external/skia/src/core/ |
SkSpinlock.cpp | 11 // To act as a mutex, we need an acquire barrier when we take the lock.
|
/external/v8/src/libplatform/ |
task-queue.cc | 16 base::LockGuard<base::Mutex> guard(&lock_); 23 base::LockGuard<base::Mutex> guard(&lock_); 33 base::LockGuard<base::Mutex> guard(&lock_); 50 base::LockGuard<base::Mutex> guard(&lock_);
|
/frameworks/av/radio/ |
Radio.cpp | 39 Mutex gLock; 49 Mutex::Autolock _l(gLock); 60 Mutex::Autolock _l(gLock); 135 Mutex::Autolock _l(mLock); 146 Mutex::Autolock _l(mLock); 155 Mutex::Autolock _l(mLock); 164 Mutex::Autolock _l(mLock); 173 Mutex::Autolock _l(mLock); 182 Mutex::Autolock _l(mLock); 191 Mutex::Autolock _l(mLock) [all...] |
/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;
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/ |
message_queue.c | 79 /* Lock the mutex to protect the critical section */ 80 pthread_mutex_lock(&ptr_q->mutex); 95 /* Unlock the mutex to release the critical section */ 96 pthread_mutex_unlock(&ptr_q->mutex); 114 /* Lock the mutex to protect the critical section */ 115 pthread_mutex_lock(&ptr_q->mutex); 120 /* Unlock the mutex to release the critical section */ 121 pthread_mutex_unlock(&ptr_q->mutex); 132 /* Unlock the mutex to release the critical section */ 133 pthread_mutex_unlock(&ptr_q->mutex); [all...] |
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
message_queue.c | 73 /* Lock the mutex to protect the critical section */ 74 pthread_mutex_lock(&ptr_q->mutex); 86 /* Unlock the mutex to release the critical section */ 87 pthread_mutex_unlock(&ptr_q->mutex); 105 /* Lock the mutex to protect the critical section */ 106 pthread_mutex_lock(&ptr_q->mutex); 110 /* Unlock the mutex to release the critical section */ 111 pthread_mutex_unlock(&ptr_q->mutex); 120 /* Unlock the mutex to release the critical section */ 121 pthread_mutex_unlock(&ptr_q->mutex); [all...] |
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
message_queue.c | 73 /* Lock the mutex to protect the critical section */ 74 pthread_mutex_lock(&ptr_q->mutex); 86 /* Unlock the mutex to release the critical section */ 87 pthread_mutex_unlock(&ptr_q->mutex); 105 /* Lock the mutex to protect the critical section */ 106 pthread_mutex_lock(&ptr_q->mutex); 110 /* Unlock the mutex to release the critical section */ 111 pthread_mutex_unlock(&ptr_q->mutex); 120 /* Unlock the mutex to release the critical section */ 121 pthread_mutex_unlock(&ptr_q->mutex); [all...] |