Searched refs:mutex (Results 76 - 100 of 587) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/libusb/src/libusb/os/
H A Dthreads_windows.h62 #define usbi_mutex_init_recursive(mutex, attr) usbi_mutex_init((mutex), (attr))
64 int usbi_mutex_static_lock(usbi_mutex_static_t *mutex);
65 int usbi_mutex_static_unlock(usbi_mutex_static_t *mutex);
68 int usbi_mutex_init(usbi_mutex_t *mutex,
70 int usbi_mutex_lock(usbi_mutex_t *mutex);
71 int usbi_mutex_unlock(usbi_mutex_t *mutex);
72 int usbi_mutex_trylock(usbi_mutex_t *mutex);
73 int usbi_mutex_destroy(usbi_mutex_t *mutex);
78 int usbi_cond_wait(usbi_cond_t *cond, usbi_mutex_t *mutex);
[all...]
H A Dthreads_windows.c30 int usbi_mutex_init(usbi_mutex_t *mutex, argument
33 if(! mutex) return ((errno=EINVAL));
34 *mutex = CreateMutex(NULL, FALSE, NULL);
35 if(!*mutex) return ((errno=ENOMEM));
38 int usbi_mutex_destroy(usbi_mutex_t *mutex) { argument
41 if(!mutex || !CloseHandle(*mutex)) return ((errno=EINVAL));
42 *mutex = NULL;
45 int usbi_mutex_trylock(usbi_mutex_t *mutex) { argument
47 if(!mutex) retur
56 usbi_mutex_lock(usbi_mutex_t *mutex) argument
65 usbi_mutex_unlock(usbi_mutex_t *mutex) argument
71 usbi_mutex_static_lock(usbi_mutex_static_t *mutex) argument
78 usbi_mutex_static_unlock(usbi_mutex_static_t *mutex) argument
131 usbi_cond_intwait(usbi_cond_t *cond, usbi_mutex_t *mutex, DWORD timeout_ms) argument
173 usbi_cond_wait(usbi_cond_t *cond, usbi_mutex_t *mutex) argument
176 usbi_cond_timedwait(usbi_cond_t *cond, usbi_mutex_t *mutex, const struct timespec *abstime) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/os/
H A Dos_thread.h30 * Thread, mutex, condition variable, barrier, semaphore and
87 #define pipe_static_mutex(mutex) \
88 static pipe_mutex mutex = PTHREAD_MUTEX_INITIALIZER
90 #define pipe_mutex_init(mutex) \
91 (void) pthread_mutex_init(&(mutex), NULL)
93 #define pipe_mutex_destroy(mutex) \
94 pthread_mutex_destroy(&(mutex))
96 #define pipe_mutex_lock(mutex) \
97 (void) pthread_mutex_lock(&(mutex))
99 #define pipe_mutex_unlock(mutex) \
344 pipe_mutex mutex; member in struct:__anon13724
396 pipe_mutex mutex; member in struct:__anon13725
[all...]
/external/mesa3d/src/gallium/auxiliary/os/
H A Dos_thread.h30 * Thread, mutex, condition variable, barrier, semaphore and
87 #define pipe_static_mutex(mutex) \
88 static pipe_mutex mutex = PTHREAD_MUTEX_INITIALIZER
90 #define pipe_mutex_init(mutex) \
91 (void) pthread_mutex_init(&(mutex), NULL)
93 #define pipe_mutex_destroy(mutex) \
94 pthread_mutex_destroy(&(mutex))
96 #define pipe_mutex_lock(mutex) \
97 (void) pthread_mutex_lock(&(mutex))
99 #define pipe_mutex_unlock(mutex) \
344 pipe_mutex mutex; member in struct:__anon27135
396 pipe_mutex mutex; member in struct:__anon27136
[all...]
/external/chromium_org/third_party/sqlite/src/src/
H A Dmutex.c14 ** This file contains code that is common across all mutex implementations.
20 ** For debugging purposes, record when the mutex subsystem is initialized
22 ** allocate a mutex while the system is uninitialized.
30 ** Initialize the mutex system.
34 if( !sqlite3GlobalConfig.mutex.xMutexAlloc ){
36 ** install a mutex implementation via sqlite3_config() prior to
41 sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex;
53 rc = sqlite3GlobalConfig.mutex.xMutexInit();
63 ** Shutdown the mutex system. This call frees resources allocated by
68 if( sqlite3GlobalConfig.mutex
[all...]
/external/chromium_org/third_party/icu/source/common/
H A Dmutex.h10 // File: mutex.h
12 // Lightweight C++ wrapper for umtx_ C mutex functions
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
53 inline Mutex(UMutex *mutex = NULL);
63 inline Mutex::Mutex(UMutex *mutex) argument
64 : fMutex(mutex)
/external/icu/icu4c/source/common/
H A Dmutex.h10 // File: mutex.h
12 // Lightweight C++ wrapper for umtx_ C mutex functions
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
53 inline Mutex(UMutex *mutex = NULL);
63 inline Mutex::Mutex(UMutex *mutex) argument
64 : fMutex(mutex)
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/Android.mk
19 test_name := thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/lock
23 test_name := thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/default
27 test_name := thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/try_lock_until
31 test_name := thread/thread.mutex/thread.mutex
[all...]
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/Android.mk
19 test_name := thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/lock
23 test_name := thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/default
27 test_name := thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock_until
31 test_name := thread/thread.mutex/thread.mutex
[all...]
/external/libcxx/test/thread/thread.condition/thread.condition.condvar/
H A Dwait.pass.cpp14 // void wait(unique_lock<mutex>& lock);
17 #include <mutex>
22 std::mutex mut;
29 std::unique_lock<std::mutex> lk(mut);
40 std::unique_lock<std::mutex>lk(mut);
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
H A Dunlock.pass.cpp10 // <mutex>
16 #include <mutex>
21 struct mutex struct
27 mutex m;
31 std::unique_lock<mutex> lk(m);
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/
H A Dnative_handle.pass.cpp10 // <mutex>
17 #include <mutex>
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/Android.mk
19 test_name := thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/nothing_to_do
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/Android.mk
19 test_name := thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/nothing_to_do
/external/valgrind/main/drd/
H A Ddrd_mutex.h39 struct mutex_info* DRD_(mutex_init)(const Addr mutex, const MutexT mutex_type);
40 void DRD_(mutex_post_destroy)(const Addr mutex);
41 void DRD_(not_a_mutex)(const Addr mutex);
42 struct mutex_info* DRD_(mutex_get)(const Addr mutex);
43 void DRD_(mutex_pre_lock)(const Addr mutex, const MutexT mutex_type,
45 void DRD_(mutex_post_lock)(const Addr mutex, const Bool took_lock,
47 void DRD_(mutex_unlock)(const Addr mutex, const MutexT mutex_type);
51 Bool DRD_(mutex_is_locked_by)(const Addr mutex, const DrdThreadId tid);
52 int DRD_(mutex_get_recursion_count)(const Addr mutex);
/external/guava/guava-tests/test/com/google/common/collect/
H A DSynchronizedSetTest.java36 public final Object mutex = new Integer(1); // something Serializable field in class:SynchronizedSetTest
39 TestSet<E> inner = new TestSet<E>(new HashSet<E>(), mutex);
40 Set<E> outer = Synchronized.set(inner, inner.mutex);
54 public final Object mutex; field in class:SynchronizedSetTest.TestSet
56 public TestSet(Set<E> delegate, Object mutex) { argument
57 checkNotNull(mutex);
59 this.mutex = mutex;
67 assertTrue(Thread.holdsLock(mutex));
72 assertTrue(Thread.holdsLock(mutex));
[all...]
H A DSynchronizedBiMapTest.java41 new TestBiMap<K, V>(HashBiMap.<K, V>create(), mutex);
42 BiMap<K, V> outer = Synchronized.biMap(inner, mutex);
49 public TestBiMap(BiMap<K, V> delegate, Object mutex) { argument
50 super(delegate, mutex);
56 assertTrue(Thread.holdsLock(mutex));
62 assertTrue(Thread.holdsLock(mutex));
67 assertTrue(Thread.holdsLock(mutex));
83 assertSame(mutex, ((SynchronizedBiMap<?, ?>) inverse).mutex);
90 assertSame(mutex, ((SynchronizedSe
94 public final Object mutex = new Integer(1); // something Serializable field in class:SynchronizedBiMapTest.AbstractBiMapTests
[all...]
H A DSynchronizedMapTest.java39 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) { argument
52 checkNotNull(mutex);
54 this.mutex = mutex;
62 assertTrue(Thread.holdsLock(mutex));
67 assertTrue(Thread.holdsLock(mutex));
[all...]
/external/libcxx/test/thread/thread.mutex/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/Android.mk
19 test_name := thread/thread.mutex/version
/external/llvm/include/llvm/Support/
H A DRWMutex.h84 /// SmartMutex - An R/W mutex with a compile time constant parameter that
85 /// indicates whether this mutex should become a no-op when we're not
145 SmartRWMutex<mt_only>& mutex; member in struct:llvm::sys::SmartScopedReader
147 explicit SmartScopedReader(SmartRWMutex<mt_only>& m) : mutex(m) {
148 mutex.reader_acquire();
152 mutex.reader_release();
160 SmartRWMutex<mt_only>& mutex; member in struct:llvm::sys::SmartScopedWriter
162 explicit SmartScopedWriter(SmartRWMutex<mt_only>& m) : mutex(m) {
163 mutex.writer_acquire();
167 mutex
[all...]
/external/qemu/include/qemu/
H A Dthread.h22 void qemu_mutex_init(QemuMutex *mutex);
23 void qemu_mutex_destroy(QemuMutex *mutex);
24 void qemu_mutex_lock(QemuMutex *mutex);
25 int qemu_mutex_trylock(QemuMutex *mutex);
26 int qemu_mutex_timedlock(QemuMutex *mutex, uint64_t msecs);
27 void qemu_mutex_unlock(QemuMutex *mutex);
37 * and pthread_cond_broadcast can be called except while the same mutex is
42 void qemu_cond_wait(QemuCond *cond, QemuMutex *mutex);
43 int qemu_cond_timedwait(QemuCond *cond, QemuMutex *mutex, uint64_t msecs);
/external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/Android.mk
19 test_name := thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/lock
23 test_name := thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/default
27 test_name := thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/lock_shared
31 test_name := thread/thread.mutex/thread.mutex
[all...]
/external/chromium_org/v8/src/base/platform/
H A Dmutex.cc5 #include "src/base/platform/mutex.h"
14 static V8_INLINE void InitializeNativeHandle(pthread_mutex_t* mutex) { argument
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) { argument
41 result = pthread_mutex_init(mutex, &attr);
49 static V8_INLINE void DestroyNativeHandle(pthread_mutex_t* mutex) { argument
50 int result = pthread_mutex_destroy(mutex);
56 LockNativeHandle(pthread_mutex_t* mutex) argument
63 UnlockNativeHandle(pthread_mutex_t* mutex) argument
70 TryLockNativeHandle(pthread_mutex_t* mutex) argument
[all...]
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
H A Dpthread_mutex_trylock.c5 * This translation unit implements mutual exclusion (mutex) primitives.
42 pthread_mutex_trylock (pthread_mutex_t * mutex) argument
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, sel
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
H A Dlp_fence.c55 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);

Completed in 389 milliseconds

1234567891011>>