Home
last modified time | relevance | path

Searched refs:mtx2 (Results 1 – 7 of 7) sorted by relevance

/external/clang/test/Analysis/
Dpthreadlock.c7 pthread_mutex_t mtx1, mtx2; variable
40 pthread_mutex_lock(&mtx2); // no-warning in ok4()
41 pthread_mutex_unlock(&mtx2); // no-warning in ok4()
68 pthread_mutex_lock(&mtx2); // no-warning in ok8()
69 pthread_mutex_unlock(&mtx2); // no-warning in ok8()
99 pthread_mutex_destroy(&mtx2); // no-warning in ok12()
114 pthread_mutex_unlock(&mtx2); // no-warning in ok14()
115 pthread_mutex_destroy(&mtx2); // no-warning in ok14()
136 pthread_mutex_init(&mtx2, NULL); // no-warning in ok17()
151 pthread_mutex_destroy(&mtx2); // no-warning in ok19()
[all …]
/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
132 ret = pthread_mutex_lock(&(data.mtx2)); in threaded()
139 ret = pthread_cond_wait(&(data.cnd), &(data.mtx2)); in threaded()
141 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx2), in threaded()
152 ret = pthread_mutex_trylock(&(data.mtx2)); in threaded()
156 ret = pthread_mutex_unlock(&(data.mtx2)); in threaded()
160 ret = pthread_mutex_unlock(&(data.mtx2)); in threaded()
163 ret = pthread_mutex_unlock(&(data.mtx2)); in threaded()
278 ret = pthread_mutex_init(&(data.mtx2), &ma); in main()
335 ret = pthread_mutex_lock(&(data.mtx2)); in main()
[all …]
/external/compiler-rt/test/tsan/
Dmutexset3.cc6 pthread_mutex_t mtx2; variable
11 pthread_mutex_lock(&mtx2); in Thread1()
13 pthread_mutex_unlock(&mtx2); in Thread1()
37 pthread_mutex_init(&mtx2, 0); in main()
44 pthread_mutex_destroy(&mtx2); in main()
Dmutexset4.cc6 pthread_mutex_t mtx2; variable
10 pthread_mutex_lock(&mtx2); in Thread1()
12 pthread_mutex_unlock(&mtx2); in Thread1()
37 pthread_mutex_init(&mtx2, 0); in main()
44 pthread_mutex_destroy(&mtx2); in main()
Dmutexset5.cc6 pthread_mutex_t mtx2; variable
17 pthread_mutex_lock(&mtx2); in Thread2()
19 pthread_mutex_unlock(&mtx2); in Thread2()
38 pthread_mutex_init(&mtx2, 0); in main()
45 pthread_mutex_destroy(&mtx2); in main()
Dmutexset6.cc6 pthread_mutex_t mtx2; variable
20 pthread_mutex_lock(&mtx2); in Thread2()
23 pthread_mutex_unlock(&mtx2); in Thread2()
43 pthread_mutex_init(&mtx2, 0); in main()
51 pthread_mutex_destroy(&mtx2); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/
D2-1.c210 pthread_mutex_t mtx2; member
272 ret = pthread_mutex_lock(&td->mtx2); in child()
294 ret = pthread_cond_timedwait(&td->cnd, &td->mtx2, &ts); in child()
296 ret = pthread_cond_wait(&td->cnd, &td->mtx2); in child()
309 ret = pthread_mutex_unlock(&td->mtx2); in child()
515 ret = pthread_mutex_init(&td->mtx2, &ma); in main()
520 ret = pthread_mutex_lock(&td->mtx2); in main()
679 ret = pthread_mutex_unlock(&td->mtx2); in main()
686 ret = pthread_mutex_lock(&td->mtx2); in main()
708 ret = pthread_mutex_unlock(&td->mtx2); in main()
[all …]