/external/guava/guava-tests/test/com/google/common/collect/ |
SynchronizedMapTest.java | 39 public final Object mutex = new Integer(1); // something Serializable field in class:SynchronizedMapTest 42 TestMap<K, V> inner = new TestMap<K, V>(new HashMap<K, V>(), mutex); 43 Map<K, V> outer = Synchronized.map(inner, mutex); 49 public final Object mutex; field in class:SynchronizedMapTest.TestMap 51 public TestMap(Map<K, V> delegate, Object mutex) { 52 checkNotNull(mutex); 54 this.mutex = mutex; 62 assertTrue(Thread.holdsLock(mutex)); 67 assertTrue(Thread.holdsLock(mutex)); [all...] |
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
pthread_mutex_trylock.c | 5 * This translation unit implements mutual exclusion (mutex) primitives. 42 pthread_mutex_trylock (pthread_mutex_t * mutex) 54 * to initialise a static mutex. We check 58 if (*mutex >= PTHREAD_ERRORCHECK_MUTEX_INITIALIZER) 60 if ((result = ptw32_mutex_check_need_init (mutex)) != 0) 66 mx = *mutex; 101 * The mutex is added to a per thread list when ownership is acquired. 126 ptw32_robust_mutex_add(mutex, self); 137 if (EOWNERDEAD == (result = ptw32_robust_mutex_inherit(mutex))) 140 ptw32_robust_mutex_add(mutex, self) [all...] |
pthread_mutex_consistent.c | 5 * This translation unit implements mutual exclusion (mutex) primitives. 40 * robustness defines the behavior when the owner of the mutex terminates without unlocking the 41 * mutex, usually because its process terminated abnormally. The value of robustness that is 45 * When the owner of the mutex terminates without unlocking the mutex, all subsequent calls 48 * When the owner of the mutex terminates without unlocking the mutex, the mutex is 49 * unlocked. The next owner of this mutex acquires the mutex with an error return o [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_fence.c | 55 pipe_mutex_init(fence->mutex); 75 pipe_mutex_destroy(fence->mutex); 91 pipe_mutex_lock(fence->mutex); 100 /* Wakeup all threads waiting on the mutex: 104 pipe_mutex_unlock(fence->mutex); 119 pipe_mutex_lock(f->mutex); 122 pipe_condvar_wait(f->signalled, f->mutex); 124 pipe_mutex_unlock(f->mutex);
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_fence.c | 55 pipe_mutex_init(fence->mutex); 75 pipe_mutex_destroy(fence->mutex); 91 pipe_mutex_lock(fence->mutex); 100 /* Wakeup all threads waiting on the mutex: 104 pipe_mutex_unlock(fence->mutex); 119 pipe_mutex_lock(f->mutex); 122 pipe_condvar_wait(f->signalled, f->mutex); 124 pipe_mutex_unlock(f->mutex);
|
/external/valgrind/main/drd/tests/ |
bug-235681.c | 13 pthread_mutex_t mutex; variable 25 rc = pthread_mutex_lock(&mutex); 31 rc = pthread_cond_wait(&cond_var, &mutex); 39 rc = pthread_mutex_unlock(&mutex); 56 rc = pthread_mutex_init(&mutex, NULL); 71 rc = pthread_mutex_lock(&mutex); 82 rc = pthread_mutex_unlock(&mutex);
|
hold_lock.c | 28 pthread_mutex_t mutex; local 45 fprintf(stderr, "Locking mutex ...\n"); 49 pthread_mutex_init(&mutex, &mutexattr); 51 pthread_mutex_lock(&mutex); 53 pthread_mutex_lock(&mutex); 54 pthread_mutex_unlock(&mutex); 55 pthread_mutex_unlock(&mutex); 56 pthread_mutex_destroy(&mutex);
|
boost_thread.cpp | 2 // use the boost::thread, boost::mutex and boost::condition classes. 6 #include <boost/thread/mutex.hpp> 12 static boost::mutex s_m; 18 boost::mutex::scoped_lock sl(s_m); 26 boost::mutex::scoped_lock sl(s_m);
|
free_is_write.c | 16 // 'mutex' protects 'count'. 17 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable 32 pthread_mutex_lock(&mutex); 35 pthread_mutex_unlock(&mutex); 51 pthread_mutex_lock(&mutex); 52 while (count < THREAD_COUNT && pthread_cond_wait(&cond, &mutex) == 0) 54 pthread_mutex_unlock(&mutex);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvar/ |
notify_one.pass.cpp | 17 #include <mutex> 22 std::mutex mut; 30 std::unique_lock<std::mutex> lk(mut); 40 std::unique_lock<std::mutex> lk(mut); 54 std::unique_lock<std::mutex>lk(mut); 61 std::unique_lock<std::mutex>lk(mut); 78 std::unique_lock<std::mutex>lk(mut);
|
wait_pred.pass.cpp | 15 // void wait(unique_lock<mutex>& lock, Predicate pred); 18 #include <mutex> 24 std::mutex mut; 40 std::unique_lock<std::mutex> lk(mut); 50 std::unique_lock<std::mutex>lk(mut);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_dummy_threading.py | 13 global mutex 21 mutex.acquire() 25 mutex.release() 29 mutex.acquire() 33 mutex.release() 40 global mutex 41 mutex = _threading.RLock()
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_dummy_threading.py | 13 global mutex 21 mutex.acquire() 25 mutex.release() 29 mutex.acquire() 33 mutex.release() 40 global mutex 41 mutex = _threading.RLock()
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/synchronization/ |
lock.h | 21 #include <boost/thread/mutex.hpp> 26 typedef boost::mutex Lock; 27 typedef boost::mutex::scoped_lock AutoLock;
|
/external/valgrind/main/drd/ |
drd_mutex.c | 69 const Addr mutex, const MutexT mutex_type) 71 tl_assert(mutex); 72 tl_assert(p->a1 == mutex); 104 "Destroying locked mutex", 112 /** Report that address 'mutex' is not the address of a mutex object. */ 113 void DRD_(not_a_mutex)(const Addr mutex) 116 mutex, -1, DRD_INVALID_THREADID }; 120 "Not a mutex", 125 * Report that address 'mutex' is not the address of a mutex object of th [all...] |
/external/icu4c/common/ |
umutex.cpp | 17 * 11/22/99 aliu Make non-global mutex autoinitialize [j151] 26 * ICU Mutex wrappers. Wrap operating system mutexes, giving the rest of ICU a 27 * platform independent set of mutex operations. For internal ICU use only. 70 // Unknown platform. Note that user can still set mutex functions at run time. 77 // The ICU global mutex. Used when ICU implementation code passes NULL for the mutex pointer. 80 // Implementation mutex. Used for compare & swap when no intrinsic is available, and 99 * User mutex implementation functions. If non-null, call back to these rather than 133 * User mutex lock. 135 * User mutexes need to be initialized before they can be used. We use the impl mutex [all...] |
/external/chromium_org/native_client_sdk/src/libraries/sdk_util/ |
simple_lock.h | 16 * A pthread mutex object, with automatic initialization and destruction. 29 pthread_mutex_t* mutex() const { return &lock_; } function in class:sdk_util::SimpleLock
|
/external/chromium_org/sync/syncable/ |
scoped_kernel_lock.cc | 13 : scoped_lock_(dir->kernel_->mutex), dir_(const_cast<Directory*>(dir)) {
|
/external/qemu/ |
qemu-thread.c | 2 * Wrappers around mutex/cond/thread functions 28 void qemu_mutex_init(QemuMutex *mutex) 32 err = pthread_mutex_init(&mutex->lock, NULL); 37 void qemu_mutex_destroy(QemuMutex *mutex) 41 err = pthread_mutex_destroy(&mutex->lock); 46 void qemu_mutex_lock(QemuMutex *mutex) 50 err = pthread_mutex_lock(&mutex->lock); 55 int qemu_mutex_trylock(QemuMutex *mutex) 57 return pthread_mutex_trylock(&mutex->lock); 70 int qemu_mutex_timedlock(QemuMutex *mutex, uint64_t msecs [all...] |
/hardware/samsung_slsi/exynos5/libexynosutils/ |
ExynosMutex.h | 55 //! Create Mutex 58 //! Destroy Mutex 61 //! Get Mutex created status 64 //! Lock Mutex 67 //! Unlock Mutex 70 //! trylock Mutex 73 //! Get Mutex type 91 inline Autolock(ExynosMutex& mutex) : mLock(mutex) { mLock.lock(); } 94 inline Autolock(ExynosMutex* mutex) : mLock(*mutex) { mLock.lock(); [all...] |
/hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/Device/ |
NotificationQueue.cpp | 54 mutex.lock(); 60 mutex.unlock(); 70 mutex.lock(); 75 mutex.unlock();
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/ |
notify_all_at_thread_exit.pass.cpp | 13 // notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk); 16 #include <mutex> 22 std::mutex mut; 29 std::unique_lock<std::mutex> lk(mut); 36 std::unique_lock<std::mutex> lk(mut);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/ |
try_lock.pass.cpp | 10 // <mutex> 12 // template <class Mutex> class unique_lock; 16 #include <mutex> 21 struct mutex struct 31 mutex m; 35 std::unique_lock<mutex> lk(m, std::defer_lock);
|
try_lock_for.pass.cpp | 10 // <mutex> 12 // template <class Mutex> class unique_lock; 17 #include <mutex> 24 struct mutex struct 36 mutex m; 40 std::unique_lock<mutex> lk(m, std::defer_lock);
|
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/ |
mlos_linux.c | 67 * @brief Mutex create function 68 * @param mutex pointer to mutex handle 71 inv_error_t inv_create_mutex(HANDLE *mutex) 84 *mutex = (HANDLE)pm; 91 * @brief Mutex lock function 92 * @param mutex Mutex handle 95 inv_error_t inv_lock_mutex(HANDLE mutex) 98 pthread_mutex_t *pm = (pthread_mutex_t *)mutex; [all...] |