Searched refs:s_mutex2 (Results 1 - 2 of 2) sorted by relevance

/external/valgrind/main/drd/tests/
H A Dpth_cancel_locked.c11 pthread_mutex_t s_mutex2; variable
16 /* Lock s_mutex2. */
17 pthread_mutex_lock(&s_mutex2);
18 /* Inform the main thread that s_mutex2 has been locked, and wait for pthread_cancel(). */
32 pthread_mutex_init(&s_mutex2, 0);
38 /* Wait until the created thread has locked s_mutex2. */
H A Dpth_inconsistent_cond_wait.c2 * associated with two different mutexes (s_mutex1 and s_mutex2), and two
40 static pthread_mutex_t s_mutex2; variable
114 PTH_CALL(pthread_mutex_init(&s_mutex2, 0));
118 PTH_CALL(pthread_create(&tid2, 0, &thread_func, &s_mutex2));
128 PTH_CALL(pthread_mutex_lock(&s_mutex2));
129 PTH_CALL(pthread_mutex_unlock(&s_mutex2));

Completed in 92 milliseconds