Searched refs:mtx1 (Results 1 – 8 of 8) sorted by relevance
/external/clang/test/Analysis/ |
D | pthreadlock.c | 7 pthread_mutex_t mtx1, mtx2; variable 17 pthread_mutex_lock(&mtx1); // no-warning in ok1() 23 pthread_mutex_unlock(&mtx1); // no-warning in ok2() 29 pthread_mutex_lock(&mtx1); // no-warning in ok3() 30 pthread_mutex_unlock(&mtx1); // no-warning in ok3() 31 pthread_mutex_lock(&mtx1); // no-warning in ok3() 32 pthread_mutex_unlock(&mtx1); // no-warning in ok3() 38 pthread_mutex_lock(&mtx1); // no-warning in ok4() 39 pthread_mutex_unlock(&mtx1); // no-warning in ok4() 47 if (pthread_mutex_trylock(&mtx1) == 0) // no-warning in ok5() [all …]
|
/external/compiler-rt/test/tsan/ |
D | mutexset6.cc | 5 pthread_mutex_t mtx1; variable 11 pthread_mutex_lock(&mtx1); in Thread1() 13 pthread_mutex_unlock(&mtx1); in Thread1() 18 pthread_mutex_lock(&mtx1); in Thread2() 19 pthread_mutex_unlock(&mtx1); in Thread2() 42 pthread_mutex_init(&mtx1, 0); in main() 50 pthread_mutex_destroy(&mtx1); in main()
|
D | mutexset5.cc | 5 pthread_mutex_t mtx1; variable 10 pthread_mutex_lock(&mtx1); in Thread1() 12 pthread_mutex_unlock(&mtx1); in Thread1() 37 pthread_mutex_init(&mtx1, 0); in main() 44 pthread_mutex_destroy(&mtx1); in main()
|
D | mutexset3.cc | 5 pthread_mutex_t mtx1; variable 10 pthread_mutex_lock(&mtx1); in Thread1() 14 pthread_mutex_unlock(&mtx1); in Thread1() 36 pthread_mutex_init(&mtx1, 0); in main() 43 pthread_mutex_destroy(&mtx1); in main()
|
D | mutexset4.cc | 5 pthread_mutex_t mtx1; variable 9 pthread_mutex_lock(&mtx1); in Thread1() 13 pthread_mutex_unlock(&mtx1); in Thread1() 36 pthread_mutex_init(&mtx1, 0); in main() 43 pthread_mutex_destroy(&mtx1); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
D | 2-5.c | 66 pthread_mutex_t mtx1, mtx2; /* The two mutex m1 and m2 */ member 88 ret = pthread_mutex_lock(&(data.mtx1)); in threaded() 98 ret = pthread_cond_wait(&(data.cnd), &(data.mtx1)); in threaded() 100 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx1), in threaded() 108 ret = pthread_mutex_trylock(&(data.mtx1)); in threaded() 112 ret = pthread_mutex_unlock(&(data.mtx1)); in threaded() 117 ret = pthread_mutex_unlock(&(data.mtx1)); in threaded() 121 ret = pthread_mutex_unlock(&(data.mtx1)); in threaded() 268 ret = pthread_mutex_init(&(data.mtx1), &ma); in main() 312 ret = pthread_mutex_lock(&(data.mtx1)); in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/ |
D | 2-1.c | 202 pthread_mutex_t mtx1; member 218 ret = pthread_mutex_lock(&td->mtx1); in child() 240 ret = pthread_cond_timedwait(&td->cnd, &td->mtx1, &ts); in child() 242 ret = pthread_cond_wait(&td->cnd, &td->mtx1); in child() 257 ret = pthread_mutex_unlock(&td->mtx1); in child() 503 ret = pthread_mutex_init(&td->mtx1, &ma); in main() 564 ret = pthread_mutex_lock(&td->mtx1); in main() 571 ret = pthread_mutex_unlock(&td->mtx1); in main() 578 ret = pthread_mutex_lock(&td->mtx1); in main() 606 ret = pthread_mutex_unlock(&td->mtx1); in main() [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_deadlock_detector2.cc | 228 Mutex *mtx1 = getMutex(id1); in MutexBeforeLock() local 229 SpinMutexLock l(&mtx1->mtx); in MutexBeforeLock() 230 if (mtx1->nlink == kMaxLink) { in MutexBeforeLock() 235 for (; li < mtx1->nlink; li++) { in MutexBeforeLock() 236 Link *link = &mtx1->link[li]; in MutexBeforeLock() 245 cb->lt->ctx, getMutexId(mtx1), m->id); in MutexBeforeLock() 250 if (li == mtx1->nlink) { in MutexBeforeLock() 252 Link *link = &mtx1->link[mtx1->nlink++]; in MutexBeforeLock() 260 cb->lt->ctx, getMutexId(mtx1), m->id); in MutexBeforeLock() 382 Mutex *mtx1 = getMutex(link.id); in CycleCheck() local [all …]
|