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.c66 pthread_mutex_t mtx1, mtx2; /* The two mutex m1 and m2 */ member
126 ret = pthread_mutex_lock(&(data.mtx2)); in threaded()
133 ret = pthread_cond_wait(&(data.cnd), &(data.mtx2)); in threaded()
135 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx2), in threaded()
146 ret = pthread_mutex_trylock(&(data.mtx2)); in threaded()
150 ret = pthread_mutex_unlock(&(data.mtx2)); in threaded()
154 ret = pthread_mutex_unlock(&(data.mtx2)); in threaded()
157 ret = pthread_mutex_unlock(&(data.mtx2)); in threaded()
272 ret = pthread_mutex_init(&(data.mtx2), &ma); in main()
329 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.c203 pthread_mutex_t mtx2; member
265 ret = pthread_mutex_lock(&td->mtx2); in child()
287 ret = pthread_cond_timedwait(&td->cnd, &td->mtx2, &ts); in child()
289 ret = pthread_cond_wait(&td->cnd, &td->mtx2); in child()
302 ret = pthread_mutex_unlock(&td->mtx2); in child()
508 ret = pthread_mutex_init(&td->mtx2, &ma); in main()
513 ret = pthread_mutex_lock(&td->mtx2); in main()
672 ret = pthread_mutex_unlock(&td->mtx2); in main()
679 ret = pthread_mutex_lock(&td->mtx2); in main()
701 ret = pthread_mutex_unlock(&td->mtx2); in main()
[all …]