/external/clang/test/Analysis/ |
pthreadlock.c | 7 pthread_mutex_t mtx1, mtx2; variable 17 pthread_mutex_lock(&mtx1); // no-warning 23 pthread_mutex_unlock(&mtx1); // no-warning 29 pthread_mutex_lock(&mtx1); // no-warning 30 pthread_mutex_unlock(&mtx1); // no-warning 31 pthread_mutex_lock(&mtx1); // no-warning 32 pthread_mutex_unlock(&mtx1); // no-warning 38 pthread_mutex_lock(&mtx1); // no-warning 39 pthread_mutex_unlock(&mtx1); // no-warning 47 if (pthread_mutex_trylock(&mtx1) == 0) // no-warnin [all...] |
/external/compiler-rt/test/tsan/ |
mutexset3.cc | 5 pthread_mutex_t mtx1; variable 10 pthread_mutex_lock(&mtx1); 14 pthread_mutex_unlock(&mtx1); 36 pthread_mutex_init(&mtx1, 0); 43 pthread_mutex_destroy(&mtx1);
|
mutexset4.cc | 5 pthread_mutex_t mtx1; variable 9 pthread_mutex_lock(&mtx1); 13 pthread_mutex_unlock(&mtx1); 36 pthread_mutex_init(&mtx1, 0); 43 pthread_mutex_destroy(&mtx1);
|
mutexset5.cc | 5 pthread_mutex_t mtx1; variable 10 pthread_mutex_lock(&mtx1); 12 pthread_mutex_unlock(&mtx1); 37 pthread_mutex_init(&mtx1, 0); 44 pthread_mutex_destroy(&mtx1);
|
mutexset6.cc | 5 pthread_mutex_t mtx1; variable 11 pthread_mutex_lock(&mtx1); 13 pthread_mutex_unlock(&mtx1); 18 pthread_mutex_lock(&mtx1); 19 pthread_mutex_unlock(&mtx1); 42 pthread_mutex_init(&mtx1, 0); 50 pthread_mutex_destroy(&mtx1);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
2-5.c | 72 pthread_mutex_t mtx1, mtx2; /* The two mutex m1 and m2 */ member in struct:_td 94 ret = pthread_mutex_lock(&(data.mtx1)); 104 ret = pthread_cond_wait(&(data.cnd), &(data.mtx1)); 106 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx1), 114 ret = pthread_mutex_trylock(&(data.mtx1)); 118 ret = pthread_mutex_unlock(&(data.mtx1)); 123 ret = pthread_mutex_unlock(&(data.mtx1)); 127 ret = pthread_mutex_unlock(&(data.mtx1)); 274 ret = pthread_mutex_init(&(data.mtx1), &ma); 318 ret = pthread_mutex_lock(&(data.mtx1)); [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/ |
2-1.c | 209 pthread_mutex_t mtx1; member in struct:__anon28585 225 ret = pthread_mutex_lock(&td->mtx1); 247 ret = pthread_cond_timedwait(&td->cnd, &td->mtx1, &ts); 249 ret = pthread_cond_wait(&td->cnd, &td->mtx1); 264 ret = pthread_mutex_unlock(&td->mtx1); 510 ret = pthread_mutex_init(&td->mtx1, &ma); 571 ret = pthread_mutex_lock(&td->mtx1); 578 ret = pthread_mutex_unlock(&td->mtx1); 585 ret = pthread_mutex_lock(&td->mtx1); 613 ret = pthread_mutex_unlock(&td->mtx1); [all...] |
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_deadlock_detector2.cc | 228 Mutex *mtx1 = getMutex(id1); local 229 SpinMutexLock l(&mtx1->mtx); 230 if (mtx1->nlink == kMaxLink) { 235 for (; li < mtx1->nlink; li++) { 236 Link *link = &mtx1->link[li]; 245 cb->lt->ctx, getMutexId(mtx1), m->id); 250 if (li == mtx1->nlink) { 252 Link *link = &mtx1->link[mtx1->nlink++]; 260 cb->lt->ctx, getMutexId(mtx1), m->id) 382 Mutex *mtx1 = getMutex(link.id); local [all...] |