Home
last modified time | relevance | path

Searched refs:mtx1 (Results 1 – 6 of 6) 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()
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()
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()
/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 …]