Searched defs:mutex (Results 101 - 125 of 236) sorted by relevance

12345678910

/external/valgrind/main/drd/
H A Ddrd_cond.c70 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) argument
230 p->mutex = mutex;
232 else if (p->mutex != mutex)
236 .cond = cond, .mutex1 = p->mutex,
[all...]
/external/webp/src/utils/
H A Dthread.c56 static int pthread_mutex_init(pthread_mutex_t* const mutex, void* mutexattr) { argument
58 InitializeCriticalSection(mutex);
62 static int pthread_mutex_lock(pthread_mutex_t* const mutex) { argument
63 EnterCriticalSection(mutex);
67 static int pthread_mutex_unlock(pthread_mutex_t* const mutex) { argument
68 LeaveCriticalSection(mutex);
72 static int pthread_mutex_destroy(pthread_mutex_t* const mutex) { argument
73 DeleteCriticalSection(mutex);
114 pthread_mutex_t* const mutex) {
120 // now unlock the mutex s
113 pthread_cond_wait(pthread_cond_t* const condition, pthread_mutex_t* const mutex) argument
[all...]
/external/bluetooth/bluedroid/hci/src/
H A Dbt_hci_bdroid.c88 pthread_mutex_t mutex; member in struct:__anon1038
111 pthread_mutex_lock(&hc_cb.mutex);
114 pthread_mutex_unlock(&hc_cb.mutex);
225 pthread_mutex_init(&hc_cb.mutex, NULL);
437 pthread_mutex_lock(&hc_cb.mutex);
440 pthread_cond_wait(&hc_cb.cond, &hc_cb.mutex);
444 pthread_mutex_unlock(&hc_cb.mutex);
/external/bluetooth/bluedroid/include/
H A Dbte_appl.h85 pthread_mutex_t mutex; /* mutex to protect below signal condition */ member in struct:__anon1057
/external/chromium_org/chrome/browser/
H A Dprocess_singleton_win.cc49 // A helper class that acquires the given |mutex| while the AutoLockMutex is in
53 explicit AutoLockMutex(HANDLE mutex) : mutex_(mutex) { argument
68 // A helper class that releases the given |mutex| while the AutoUnlockMutex is
72 explicit AutoUnlockMutex(HANDLE mutex) : mutex_(mutex) { argument
365 // We now own the mutex so we are the only process that can create the
367 // between the time where we looked for it above and the time the mutex
375 // Chrome, releases the startup mutex, and waits for metro Chrome to take
/external/chromium_org/sync/syncable/
H A Ddirectory.h192 // holding kernel mutex.
410 // The mutex effectively protects all the indices, but not the
412 // from the index, the mutex can be unlocked and entry read or written.
414 // Never hold the mutex and do anything with the database or any
416 base::Lock mutex; member in struct:syncer::syncable::Directory::Kernel
466 // time; this mutex protects that activity.
469 // The next metahandle is protected by kernel mutex.
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Dhpmufn.c221 static void U_CALLCONV myMutexInit(const void *context, UMTX *mutex, UErrorCode *status) { argument
231 *mutex = theMutex;
235 static void U_CALLCONV myMutexDestroy(const void *context, UMTX *mutex) { argument
236 DummyMutex *This = *(DummyMutex **)mutex;
246 static void U_CALLCONV myMutexLock(const void *context, UMTX *mutex) { argument
247 DummyMutex *This = *(DummyMutex **)mutex;
254 static void U_CALLCONV myMutexUnlock(const void *context, UMTX *mutex) { argument
255 DummyMutex *This = *(DummyMutex **)mutex;
281 /* Can not set mutex functions if ICU is already initialized */
310 /* After reinitializing ICU, we should not be able to set the mutex func
[all...]
/external/chromium_org/third_party/libusb/src/libusb/os/
H A Dpoll_windows.c74 CRITICAL_SECTION mutex; // lock for fds member in struct:__anon11484
166 InitializeCriticalSection(&_poll_fd[i].mutex);
173 // Internal function to retrieve the table index (and lock the fd mutex)
183 EnterCriticalSection(&_poll_fd[i].mutex);
186 LeaveCriticalSection(&_poll_fd[i].mutex);
236 // mutex lock before too long
237 EnterCriticalSection(&_poll_fd[i].mutex);
246 LeaveCriticalSection(&_poll_fd[i].mutex);
247 DeleteCriticalSection(&_poll_fd[i].mutex);
277 EnterCriticalSection(&_poll_fd[i].mutex);
[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:__anon12045
396 pipe_mutex mutex; member in struct:__anon12046
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/pipebuffer/
H A Dpb_bufmgr_cache.c81 pipe_mutex mutex; member in struct:pb_cache_manager
155 pipe_mutex_lock(mgr->mutex);
164 pipe_mutex_unlock(mgr->mutex);
271 pipe_mutex_lock(mgr->mutex);
314 pipe_mutex_unlock(mgr->mutex);
320 pipe_mutex_unlock(mgr->mutex);
363 pipe_mutex_lock(mgr->mutex);
372 pipe_mutex_unlock(mgr->mutex);
408 pipe_mutex_init(mgr->mutex);
H A Dpb_bufmgr_debug.c80 pipe_mutex mutex; member in struct:pb_debug_buffer
97 pipe_mutex mutex; member in struct:pb_debug_manager
238 pipe_mutex_lock(mgr->mutex);
240 pipe_mutex_unlock(mgr->mutex);
242 pipe_mutex_destroy(buf->mutex);
263 pipe_mutex_lock(buf->mutex);
266 pipe_mutex_unlock(buf->mutex);
278 pipe_mutex_lock(buf->mutex);
282 pipe_mutex_unlock(buf->mutex);
308 pipe_mutex_lock(buf->mutex);
[all...]
H A Dpb_bufmgr_pool.c59 pipe_mutex mutex; member in struct:pool_pb_manager
113 pipe_mutex_lock(pool->mutex);
116 pipe_mutex_unlock(pool->mutex);
129 pipe_mutex_lock(pool->mutex);
131 pipe_mutex_unlock(pool->mutex);
199 pipe_mutex_lock(pool->mutex);
202 pipe_mutex_unlock(pool->mutex);
210 pipe_mutex_unlock(pool->mutex);
218 pipe_mutex_unlock(pool->mutex);
241 pipe_mutex_lock(pool->mutex);
[all...]
H A Dpb_bufmgr_slab.c131 pipe_mutex mutex; member in struct:pb_slab_manager
144 * initialization and thus needs no mutex protection.
202 pipe_mutex_lock(mgr->mutex);
224 pipe_mutex_unlock(mgr->mutex);
399 pipe_mutex_lock(mgr->mutex);
405 pipe_mutex_unlock(mgr->mutex);
421 pipe_mutex_unlock(mgr->mutex);
476 pipe_mutex_init(mgr->mutex);
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
H A Dlp_scene.h169 pipe_mutex mutex; member in struct:lp_scene
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
H A Dsvga_screen.c75 const char *build = "", *llvm = "", *mutex = ""; local
81 mutex = "mutex: " PIPE_ATOMIC ";";
89 util_snprintf(name, sizeof(name), "SVGA3D; %s %s %s", build, mutex, llvm);
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/glx/xlib/
H A Dxm_api.h77 pipe_mutex mutex; member in struct:xmesa_display
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/radeon/drm/
H A Dradeon_drm_winsys.c101 pipe_mutex *mutex,
109 pipe_mutex_lock(*mutex);
114 pipe_mutex_unlock(*mutex);
119 pipe_mutex_unlock(*mutex);
129 pipe_mutex_unlock(*mutex);
138 pipe_mutex_unlock(*mutex);
146 pipe_mutex_unlock(*mutex);
99 radeon_set_fd_access(struct radeon_drm_cs *applier, struct radeon_drm_cs **owner, pipe_mutex *mutex, unsigned request, boolean enable) argument
/external/chromium_org/third_party/mesa/src/src/glx/apple/
H A Dapple_glx_drawable.h116 * This mutex protects the reference count and any other drawable data.
119 pthread_mutex_t mutex; member in struct:apple_glx_drawable
/external/chromium_org/third_party/sqlite/src/src/
H A Dmem3.c116 sqlite3_mutex *mutex; member in struct:Mem3Global
150 assert( sqlite3_mutex_held(mem3.mutex) );
169 assert( sqlite3_mutex_held(mem3.mutex) );
188 assert( sqlite3_mutex_held(mem3.mutex) );
203 assert( sqlite3_mutex_held(mem3.mutex) );
218 ** If the STATIC_MEM mutex is not already held, obtain it now. The mutex
223 if( sqlite3GlobalConfig.bMemstat==0 && mem3.mutex==0 ){
224 mem3.mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MEM);
226 sqlite3_mutex_enter(mem3.mutex);
[all...]
H A Dtest_init.c35 sqlite3_mutex_methods mutex; member in struct:Wrapped
39 int mutex_init; /* True if mutex subsystem is initalized */
40 int mutex_fail; /* True to fail mutex subsystem inialization */
73 rc = wrapped.mutex.xMutexInit();
81 wrapped.mutex.xMutexEnd();
86 return wrapped.mutex.xMutexAlloc(e);
89 wrapped.mutex.xMutexFree(p);
92 wrapped.mutex.xMutexEnter(p);
95 return wrapped.mutex.xMutexTry(p);
98 wrapped.mutex
[all...]
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stoptheworld_linux_libcdep.cc189 // The tracer thread waits on this mutex while the parent finished its
191 BlockingMutex mutex; member in struct:__sanitizer::TracerThreadArgument
214 tracer_thread_argument->mutex.Lock();
215 tracer_thread_argument->mutex.Unlock();
328 tracer_thread_argument.mutex.Lock();
334 tracer_thread_argument.mutex.Unlock();
342 tracer_thread_argument.mutex.Unlock();
/external/guava/guava-tests/test/com/google/common/collect/
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/icu4c/common/
H A Dumutex.cpp17 * 11/22/99 aliu Make non-global mutex autoinitialize [j151]
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
140 static void usrMutexLock(UMutex *mutex) { argument
190 umtx_unlock(UMutex* mutex) argument
[all...]
/external/icu4c/i18n/
H A Ddigitlst.cpp34 #include "mutex.h"
121 Mutex mutex; local
418 Mutex mutex;
482 Mutex mutex;
/external/icu4c/test/cintltst/
H A Dhpmufn.c221 static void U_CALLCONV myMutexInit(const void *context, UMTX *mutex, UErrorCode *status) { argument
231 *mutex = theMutex;
235 static void U_CALLCONV myMutexDestroy(const void *context, UMTX *mutex) { argument
236 DummyMutex *This = *(DummyMutex **)mutex;
246 static void U_CALLCONV myMutexLock(const void *context, UMTX *mutex) { argument
247 DummyMutex *This = *(DummyMutex **)mutex;
254 static void U_CALLCONV myMutexUnlock(const void *context, UMTX *mutex) { argument
255 DummyMutex *This = *(DummyMutex **)mutex;
281 /* Can not set mutex functions if ICU is already initialized */
310 /* After reinitializing ICU, we should not be able to set the mutex func
[all...]

Completed in 2176 milliseconds

12345678910