Home
last modified time | relevance | path

Searched refs:mtx1 (Results 1 – 8 of 8) sorted by relevance

/external/clang/test/Analysis/
Dpthreadlock.c7 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/
Dmutexset6.cc5 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()
Dmutexset3.cc5 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()
Dmutexset4.cc5 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()
Dmutexset5.cc5 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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
D2-5.c72 pthread_mutex_t mtx1, mtx2; /* The two mutex m1 and m2 */ member
94 ret = pthread_mutex_lock(&(data.mtx1)); in threaded()
104 ret = pthread_cond_wait(&(data.cnd), &(data.mtx1)); in threaded()
106 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx1), in threaded()
114 ret = pthread_mutex_trylock(&(data.mtx1)); in threaded()
118 ret = pthread_mutex_unlock(&(data.mtx1)); in threaded()
123 ret = pthread_mutex_unlock(&(data.mtx1)); in threaded()
127 ret = pthread_mutex_unlock(&(data.mtx1)); in threaded()
274 ret = pthread_mutex_init(&(data.mtx1), &ma); in main()
318 ret = pthread_mutex_lock(&(data.mtx1)); in main()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/
D2-1.c209 pthread_mutex_t mtx1; member
225 ret = pthread_mutex_lock(&td->mtx1); in child()
247 ret = pthread_cond_timedwait(&td->cnd, &td->mtx1, &ts); in child()
249 ret = pthread_cond_wait(&td->cnd, &td->mtx1); in child()
264 ret = pthread_mutex_unlock(&td->mtx1); in child()
510 ret = pthread_mutex_init(&td->mtx1, &ma); in main()
571 ret = pthread_mutex_lock(&td->mtx1); in main()
578 ret = pthread_mutex_unlock(&td->mtx1); in main()
585 ret = pthread_mutex_lock(&td->mtx1); in main()
613 ret = pthread_mutex_unlock(&td->mtx1); in main()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_deadlock_detector2.cc228 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 …]