/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/os/ |
os_thread.h | 31 * Thread, mutex, condition variable, barrier, semaphore and 115 #define pipe_static_mutex(mutex) \ 116 static pipe_mutex mutex = _MTX_INITIALIZER_NP 118 #define pipe_mutex_init(mutex) \ 119 (void) mtx_init(&(mutex), mtx_plain) 121 #define pipe_mutex_destroy(mutex) \ 122 mtx_destroy(&(mutex)) 124 #define pipe_mutex_lock(mutex) \ 125 (void) mtx_lock(&(mutex)) 127 #define pipe_mutex_unlock(mutex) \ 197 pipe_mutex mutex; member in struct:__anon29403 249 pipe_mutex mutex; member in struct:__anon29404 [all...] |
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
pb_buffer_fenced.c | 82 * Following members are mutable and protected by this mutex. 84 pipe_mutex 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 pipe_mutex_unlock(fenced_mgr->mutex); 355 pipe_mutex_lock(fenced_mgr->mutex); 655 pipe_mutex_lock(fenced_mgr->mutex); 659 pipe_mutex_unlock(fenced_mgr->mutex); 672 pipe_mutex_lock(fenced_mgr->mutex); 694 * the mutex, so all copies of mutable state must be discarded [all...] |
pb_bufmgr_debug.c | 81 pipe_mutex mutex; member in struct:pb_debug_buffer 98 pipe_mutex mutex; member in struct:pb_debug_manager 239 pipe_mutex_lock(mgr->mutex); 241 pipe_mutex_unlock(mgr->mutex); 243 pipe_mutex_destroy(buf->mutex); 263 pipe_mutex_lock(buf->mutex); 266 pipe_mutex_unlock(buf->mutex); 277 pipe_mutex_lock(buf->mutex); 281 pipe_mutex_unlock(buf->mutex); 307 pipe_mutex_lock(buf->mutex); [all...] |
pb_bufmgr_slab.c | 131 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/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_scene.h | 177 pipe_mutex mutex; member in struct:lp_scene
|
/external/mesa3d/src/gallium/drivers/svga/ |
svga_screen.c | 82 const char *build = "", *llvm = "", *mutex = ""; local 88 mutex = "mutex: " PIPE_ATOMIC ";"; 98 util_snprintf(name, sizeof(name), "SVGA3D; %s %s %s", build, mutex, llvm); [all...] |
/external/mesa3d/src/gallium/state_trackers/glx/xlib/ |
xm_api.h | 79 pipe_mutex mutex; member in struct:xmesa_display
|
/external/mesa3d/src/gallium/winsys/intel/drm/ |
intel_drm_winsys.c | 52 /* these are protected by the mutex */ 53 pipe_mutex mutex; member in struct:intel_winsys 192 pipe_mutex_init(winsys->mutex); 195 pipe_mutex_destroy(winsys->mutex); 221 pipe_mutex_destroy(winsys->mutex); 238 pipe_mutex_lock(winsys->mutex); 241 pipe_mutex_unlock(winsys->mutex); 445 pipe_mutex_lock(winsys->mutex); 450 pipe_mutex_unlock(winsys->mutex); 467 pipe_mutex_unlock(winsys->mutex); [all...] |
/external/mesa3d/src/gallium/winsys/svga/drm/ |
pb_buffer_simple_fenced.c | 71 * Following members are mutable and protected by this mutex. 73 pipe_mutex 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 pipe_mutex_unlock(fenced_mgr->mutex); 318 pipe_mutex_lock(fenced_mgr->mutex); 511 pipe_mutex_lock(fenced_mgr->mutex); 515 pipe_mutex_unlock(fenced_mgr->mutex); 528 pipe_mutex_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/protobuf/gtest/test/ |
gtest-port_test.cc | 101 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data); local 102 pthread_mutex_lock(mutex); 103 pthread_mutex_unlock(mutex); 109 pthread_mutex_t mutex; local 113 // TODO(vladl@google.com): turn mutex into internal::Mutex for automatic 115 pthread_mutex_init(&mutex, NULL); 116 pthread_mutex_lock(&mutex); 120 const int status = pthread_create(&thread_id, &attr, &ThreadFunc, &mutex); 124 pthread_mutex_unlock(&mutex); 865 Mutex mutex; local [all...] |
/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
|
/external/swiftshader/src/Common/ |
Thread.hpp | 110 pthread_mutex_t mutex; member in class:sw::Event 218 pthread_mutex_lock(&mutex); 221 pthread_mutex_unlock(&mutex); 230 pthread_mutex_lock(&mutex); 231 while(!signaled) pthread_cond_wait(&handle, &mutex); 233 pthread_mutex_unlock(&mutex);
|
/external/swiftshader/third_party/LLVM/examples/ParallelJIT/ |
ParallelJIT.cpp | 135 result = pthread_mutex_init( &mutex, NULL );
144 result = pthread_mutex_destroy( &mutex );
151 int result = pthread_mutex_lock( &mutex );
166 result = pthread_cond_wait( &condition, &mutex );
170 // unlock the mutex before returning
171 result = pthread_mutex_unlock( &mutex );
180 int result = pthread_mutex_lock( &mutex );
190 pthread_cond_wait( &condition, &mutex );
193 // unlock the mutex before returning
194 result = pthread_mutex_unlock( &mutex );
218 pthread_mutex_t mutex; member in class:WaitForThreads [all...] |
/external/valgrind/drd/ |
drd_clientobj.h | 86 Addr mutex; // Client mutex specified in pthread_cond_wait() call, and member in struct:cond_info 148 struct mutex_info mutex; member in union:drd_clientobj
|
/frameworks/av/media/libeffects/factory/ |
EffectsXmlConfigLoader.cpp | 133 void listPush(T* object, ListElem** list, pthread_mutex_t* mutex = nullptr) noexcept { 136 if (mutex != nullptr) { 137 pthread_mutex_lock(mutex); variable 141 if (mutex != nullptr) { 142 pthread_mutex_unlock(mutex); variable 148 void listPush(UniqueCPtr<T>&& object, ListElem** list, pthread_mutex_t* mutex = nullptr) noexcept { 149 listPush(object.release(), list, mutex);
|
/frameworks/wilhelm/tests/listening/ |
slesTest_playMuteSolo.cpp | 56 // Mutex and condition shared with main program to protect prefetch_status 58 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable 91 ok = pthread_mutex_lock(&mutex); 96 ok = pthread_mutex_unlock(&mutex); 313 pthread_mutex_lock(&mutex); 315 pthread_cond_wait(&cond, &mutex); 317 pthread_mutex_unlock(&mutex);
|
/frameworks/wilhelm/tests/mimeUri/ |
slesTestSlowDownUri.cpp | 39 // Mutex and condition shared with main program to protect prefetch_status 41 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable 137 ok = pthread_mutex_lock(&mutex); 142 ok = pthread_mutex_unlock(&mutex); 340 pthread_mutex_lock(&mutex); 342 pthread_cond_wait(&cond, &mutex); 344 pthread_mutex_unlock(&mutex);
|
/frameworks/wilhelm/tests/native-media/jni/ |
native-media-jni.c | 76 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable 108 // note there is never any contention on this mutex unless a discontinuity request is active 109 ok = pthread_mutex_lock(&mutex); 219 ok = pthread_mutex_unlock(&mutex); 529 ok = pthread_mutex_lock(&mutex); 535 ok = pthread_cond_wait(&cond, &mutex); 538 ok = pthread_mutex_unlock(&mutex);
|