HomeSort by relevance Sort by last modified time
    Searched defs:mutex (Results 176 - 200 of 287) sorted by null

1 2 3 4 5 6 78 91011>>

  /cts/tests/tests/mediastress/jni/
native-media-jni.cpp 95 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
139 // note there is never any contention on this mutex unless a discontinuity request is active
140 ok = pthread_mutex_lock(&mutex);
192 ok = pthread_mutex_unlock(&mutex);
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
thread_nt.h 20 InitializeNonRecursiveMutex(PNRMUTEX mutex)
22 mutex->owned = -1 ; /* No threads have entered NonRecursiveMutex */
23 mutex->thread_id = 0 ;
24 mutex->hevent = CreateEvent(NULL, FALSE, FALSE, NULL) ;
25 return mutex->hevent != NULL ; /* TRUE if the mutex is created */
29 DeleteNonRecursiveMutex(PNRMUTEX mutex)
32 CloseHandle(mutex->hevent) ;
33 mutex->hevent = NULL ; /* Just in case */
37 EnterNonRecursiveMutex(PNRMUTEX mutex, BOOL wait)
71 PNRMUTEX mutex = (PNRMUTEX)malloc(sizeof(NRMUTEX)) ; local
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
SynchronizedDequeTest.java 34 Deque<String> outer = Synchronized.deque(inner, inner.mutex);
41 public final Object mutex = new Integer(1); // something Serializable field in class:SynchronizedDequeTest.TestDeque
45 assertTrue(Thread.holdsLock(mutex));
51 assertTrue(Thread.holdsLock(mutex));
57 assertTrue(Thread.holdsLock(mutex));
63 assertTrue(Thread.holdsLock(mutex));
69 assertTrue(Thread.holdsLock(mutex));
76 assertFalse(Thread.holdsLock(mutex));
82 assertTrue(Thread.holdsLock(mutex));
88 assertTrue(Thread.holdsLock(mutex));
    [all...]
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...]
SynchronizedMultimapTest.java 55 SetMultimap<String, String> outer = Synchronized.setMultimap(inner, inner.mutex);
77 public final Object mutex = new Integer(1); // something Serializable field in class:SynchronizedMultimapTest.TestMultimap
84 assertTrue(Thread.holdsLock(mutex));
89 assertTrue(Thread.holdsLock(mutex));
94 assertTrue(Thread.holdsLock(mutex));
99 assertTrue(Thread.holdsLock(mutex));
104 assertTrue(Thread.holdsLock(mutex));
109 assertTrue(Thread.holdsLock(mutex));
114 assertTrue(Thread.holdsLock(mutex));
120 assertTrue(Thread.holdsLock(mutex));
    [all...]
  /external/libusb/libusb/os/
poll_windows.c 76 CRITICAL_SECTION mutex; // lock for fds member in struct:__anon29618
168 InitializeCriticalSection(&_poll_fd[i].mutex);
175 // Internal function to retrieve the table index (and lock the fd mutex)
185 EnterCriticalSection(&_poll_fd[i].mutex);
188 LeaveCriticalSection(&_poll_fd[i].mutex);
238 // mutex lock before too long
239 EnterCriticalSection(&_poll_fd[i].mutex);
248 LeaveCriticalSection(&_poll_fd[i].mutex);
249 DeleteCriticalSection(&_poll_fd[i].mutex);
279 EnterCriticalSection(&_poll_fd[i].mutex);
    [all...]
  /external/libvpx/libvpx/vp9/common/
vp9_thread_common.c 22 static INLINE void mutex_lock(pthread_mutex_t *const mutex) {
28 if (!pthread_mutex_trylock(mutex)) {
34 if (!locked) pthread_mutex_lock(mutex);
43 pthread_mutex_t *const mutex = &lf_sync->mutex[r - 1]; local
44 mutex_lock(mutex);
47 pthread_cond_wait(&lf_sync->cond[r - 1], mutex);
49 pthread_mutex_unlock(mutex);
74 mutex_lock(&lf_sync->mutex[r]);
79 pthread_mutex_unlock(&lf_sync->mutex[r])
    [all...]
  /external/llvm/examples/ParallelJIT/
ParallelJIT.cpp 152 result = pthread_mutex_init( &mutex, nullptr );
162 result = pthread_mutex_destroy( &mutex );
169 int result = pthread_mutex_lock( &mutex );
185 result = pthread_cond_wait( &condition, &mutex );
189 // unlock the mutex before returning
190 result = pthread_mutex_unlock( &mutex );
199 int result = pthread_mutex_lock( &mutex );
210 pthread_cond_wait( &condition, &mutex );
213 // unlock the mutex before returning
214 result = pthread_mutex_unlock( &mutex );
239 pthread_mutex_t mutex; member in class:WaitForThreads
    [all...]
  /external/ltp/testcases/open_posix_testsuite/functional/threads/pi_test/
pitest-1.c 11 * TL thread with lower priority 1 is created, which locks a mutex and
13 * to lock TL's mutex. A TP thread with priority 2 is created to reflect the
24 * 3. Create 1 TL thread to lock a mutex. TL will get a chance to run
26 * 4. Create 1 TB thread to lock the mutex. TL's priority will boost to
50 pthread_mutex_t mutex; variable
154 pthread_mutex_lock(&mutex);
158 pthread_mutex_unlock(&mutex);
213 rc = pthread_mutex_timedlock(&mutex, &boost_time);
245 /* Initialize a mutex with PTHREAD_PRIO_INHERIT protocol */
247 mutex_init(&mutex, &mutex_attr)
    [all...]
pitest-2.c 12 * TL thread with lower priority 1 is created, which locks a mutex and
14 * created and try to lock TL's mutex. One TP1 and one TP2 thread with priority
25 * 3. Create 1 TL thread to lock a mutex. TL will get a chance to run
27 * 4. Create 1 TB1 thread with higher priority than TP1 to lock the mutex.
30 * 5. Create 1 TB2 thread with higher priority than TP2 to lock the mutex,
52 pthread_mutex_t mutex; variable
155 pthread_mutex_lock(&mutex);
159 pthread_mutex_unlock(&mutex);
215 rc = pthread_mutex_timedlock(&mutex, &boost_time);
244 rc = pthread_mutex_timedlock(&mutex, &boost_time)
    [all...]
pitest-5.c 12 * TL thread with lower priority 1 is created, which locks a mutex and
14 * to lock TL's mutex. A TP thread with priority 2 is created to reflect the
25 * 3. Create 1 TL thread to lock a mutex. TL will get a chance to run
27 * 4. Create 1 TB thread to lock the mutex. TL's priority will boost to
29 * 5. TL will unlock the mutex, TL's priority will decrease, so TP and TL
51 pthread_mutex_t mutex; variable
158 pthread_mutex_lock(&mutex);
162 rc = pthread_mutex_unlock(&mutex);
166 "#EVENT %f TL unlock the mutex\n",
170 ("UNRESOLVED: TL failed to unlock mutex: %d %s"
    [all...]
pitest-6.c 12 * TL thread with lower priority 1 is created, which locks a mutex and
14 * to lock TL's mutex. A TP thread with priority 2 is created to reflect the
25 * 3. Create 1 TL thread to lock a mutex. TL will get a chance to run
27 * 4. Create 1 TB thread to lock the mutex. TL's priority will boost to
50 pthread_mutex_t mutex; variable
155 pthread_mutex_lock(&mutex);
159 pthread_mutex_unlock(&mutex);
208 DPRINTF(stdout, "#EVENT %f TB Started, waiting for mutex for %lu s\n",
215 rc = pthread_mutex_timedlock(&mutex, &boost_time);
244 /* Initialize a mutex with PTHREAD_PRIO_INHERIT protocol *
    [all...]
  /external/mesa3d/src/gallium/auxiliary/pipebuffer/
pb_buffer_fenced.c 82 * Following members are mutable and protected by this mutex.
84 mtx_t mutex; member in struct:fenced_manager
120 * Following members are mutable and protected by fenced_manager::mutex.
327 * This function will release and re-acquire the mutex, so any copy of mutable
351 mtx_unlock(&fenced_mgr->mutex);
355 mtx_lock(&fenced_mgr->mutex);
655 mtx_lock(&fenced_mgr->mutex);
659 mtx_unlock(&fenced_mgr->mutex);
672 mtx_lock(&fenced_mgr->mutex);
694 * the mutex, so all copies of mutable state must be discarded
    [all...]
pb_bufmgr_debug.c 80 mtx_t mutex; member in struct:pb_debug_buffer
97 mtx_t mutex; member in struct:pb_debug_manager
238 mtx_lock(&mgr->mutex);
240 mtx_unlock(&mgr->mutex);
242 mtx_destroy(&buf->mutex);
262 mtx_lock(&buf->mutex);
265 mtx_unlock(&buf->mutex);
276 mtx_lock(&buf->mutex);
280 mtx_unlock(&buf->mutex);
306 mtx_lock(&buf->mutex);
    [all...]
pb_bufmgr_slab.c 130 mtx_t mutex; member in struct:pb_slab_manager
143 * initialization and thus needs no mutex protection.
201 mtx_lock(&mgr->mutex);
223 mtx_unlock(&mgr->mutex);
398 mtx_lock(&mgr->mutex);
404 mtx_unlock(&mgr->mutex);
420 mtx_unlock(&mgr->mutex);
475 (void) mtx_init(&mgr->mutex, mtx_plain);
  /external/mesa3d/src/gallium/drivers/llvmpipe/
lp_scene.h 177 mtx_t mutex; member in struct:lp_scene
  /external/mesa3d/src/gallium/drivers/svga/
svga_screen.c 87 const char *build = "", *llvm = "", *mutex = ""; local
93 mutex = "mutex: " PIPE_ATOMIC ";";
103 util_snprintf(name, sizeof(name), "SVGA3D; %s %s %s", build, mutex, llvm);
    [all...]
  /external/mesa3d/src/gallium/drivers/vc5/
vc5_simulator.c 64 mtx_t mutex; member in struct:vc5_simulator_state
84 .mutex = _MTX_INITIALIZER_NP,
172 mtx_lock(&sim_state.mutex);
174 mtx_unlock(&sim_state.mutex);
189 mtx_lock(&sim_state.mutex);
192 mtx_unlock(&sim_state.mutex);
208 mtx_lock(&sim_state.mutex);
216 mtx_unlock(&sim_state.mutex);
223 mtx_lock(&sim_state.mutex);
226 mtx_unlock(&sim_state.mutex);
    [all...]
  /external/mesa3d/src/gallium/state_trackers/glx/xlib/
xm_api.h 79 mtx_t mutex; member in struct:xmesa_display
  /external/mesa3d/src/gallium/winsys/svga/drm/
pb_buffer_simple_fenced.c 71 * Following members are mutable and protected by this mutex.
73 mtx_t mutex; member in struct:fenced_manager
105 * Following members are mutable and protected by fenced_manager::mutex.
290 * This function will release and re-acquire the mutex, so any copy of mutable
314 mtx_unlock(&fenced_mgr->mutex);
318 mtx_lock(&fenced_mgr->mutex);
511 mtx_lock(&fenced_mgr->mutex);
515 mtx_unlock(&fenced_mgr->mutex);
528 mtx_lock(&fenced_mgr->mutex);
554 * the mutex, so all copies of mutable state must be discarded
    [all...]
  /external/mesa3d/src/glx/apple/
apple_glx_drawable.h 116 * This mutex protects the reference count and any other drawable data.
119 pthread_mutex_t mutex; member in struct:apple_glx_drawable
  /external/mesa3d/src/mesa/drivers/dri/i965/
brw_sync.c 66 mtx_t mutex; member in struct:brw_fence
81 mtx_init(&fence->mutex, mtx_plain);
107 mtx_destroy(&fence->mutex);
191 mtx_lock(&fence->mutex);
193 mtx_unlock(&fence->mutex);
239 mtx_lock(&fence->mutex);
241 mtx_unlock(&fence->mutex);
308 mtx_lock(&fence->mutex);
310 mtx_unlock(&fence->mutex);
531 mtx_lock(&fence->mutex);
    [all...]
  /external/mesa3d/src/util/
u_queue.h 124 mtx_t mutex; member in struct:util_queue_fence
  /external/python/cpython2/Python/
thread_nt.h 20 InitializeNonRecursiveMutex(PNRMUTEX mutex)
22 mutex->owned = -1 ; /* No threads have entered NonRecursiveMutex */
23 mutex->thread_id = 0 ;
24 mutex->hevent = CreateEvent(NULL, FALSE, FALSE, NULL) ;
25 return mutex->hevent != NULL ; /* TRUE if the mutex is created */
29 DeleteNonRecursiveMutex(PNRMUTEX mutex)
32 CloseHandle(mutex->hevent) ;
33 mutex->hevent = NULL ; /* Just in case */
37 EnterNonRecursiveMutex(PNRMUTEX mutex, BOOL wait
71 PNRMUTEX mutex = (PNRMUTEX)malloc(sizeof(NRMUTEX)) ; local
    [all...]
  /external/squashfs-tools/squashfs-tools/
caches-queues-lists.h 135 pthread_mutex_t mutex; member in struct:queue
150 pthread_mutex_t mutex; member in struct:seq_queue
167 pthread_mutex_t mutex; member in struct:cache

Completed in 1829 milliseconds

1 2 3 4 5 6 78 91011>>