Home
last modified time | relevance | path

Searched refs:mut (Results 1 – 16 of 16) sorted by relevance

/sysdeps/pthread/
A Dtst-cond3.c35 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable
48 err = pthread_mutex_lock (&mut); in tf()
56 xpthread_cond_wait (&cond, &mut); in tf()
79 err = pthread_mutex_unlock (&mut); in do_test()
95 err = pthread_mutex_lock (&mut); in do_test()
106 xpthread_cond_wait (&cond, &mut); in do_test()
A Dtst-cond11.c40 pthread_mutex_t mut; in run_test() local
56 xpthread_mutex_init (&mut, &mutattr); in run_test()
59 xpthread_mutex_lock (&mut); in run_test()
60 TEST_COMPARE (pthread_mutex_lock (&mut), EDEADLK); in run_test()
70 TEST_COMPARE (pthread_cond_timedwait (&cond, &mut, &ts_timeout), ETIMEDOUT); in run_test()
73 TEST_COMPARE (pthread_cond_clockwait (&cond, &mut, wait_clock, &ts_timeout), in run_test()
78 xpthread_mutex_unlock (&mut); in run_test()
79 xpthread_mutex_destroy (&mut); in run_test()
A Dtst-cond1.c25 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable
33 err = pthread_mutex_lock (&mut); in tf()
43 err = pthread_mutex_unlock (&mut); in tf()
59 printf ("&cond = %p\n&mut = %p\n", &cond, &mut); in do_test()
63 err = pthread_mutex_lock (&mut); in do_test()
78 err = pthread_cond_wait (&cond, &mut); in do_test()
A Dtst-cond8.c35 int e = pthread_mutex_lock (&mut); in ch()
48 if (pthread_mutex_unlock (&mut) != 0) in ch()
70 err = pthread_mutex_lock (&mut); in tf1()
88 pthread_cond_wait (&cond, &mut); in tf1()
110 err = pthread_mutex_lock (&mut); in tf2()
136 pthread_cond_timedwait (&cond, &mut, &ts); in tf2()
152 printf ("&cond = %p\n&mut = %p\n", &cond, &mut); in do_test()
181 err = pthread_mutex_lock (&mut); in do_test()
188 err = pthread_mutex_unlock (&mut); in do_test()
235 err = pthread_mutex_lock (&mut); in do_test()
[all …]
A Dtst-cond27.c32 static pthread_mutex_t mut = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP; variable
40 xpthread_mutex_lock (&mut); in do_test_clock()
50 TEST_COMPARE (pthread_cond_clockwait (&cond, &mut, clockid, &ts_timeout), in do_test_clock()
53 xpthread_mutex_unlock (&mut); in do_test_clock()
A Dtst-cond15.c28 static pthread_mutex_t mut = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; variable
34 if (pthread_mutex_lock (&mut) != 0) in tf()
39 if (pthread_mutex_lock (&mut) != 0) in tf()
44 if (pthread_mutex_lock (&mut) != 0) in tf()
62 int err = pthread_cond_timedwait (&cond, &mut, &ts); in tf()
69 if (pthread_mutex_unlock (&mut) != 0) in tf()
74 if (pthread_mutex_unlock (&mut) != 0) in tf()
79 if (pthread_mutex_unlock (&mut) != 0) in tf()
A Dtst-cond20.c28 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable
38 pthread_mutex_lock (&mut); in tf()
50 pthread_cond_timedwait (&cond, &mut, &ts); in tf()
52 pthread_cond_wait (&cond, &mut); in tf()
55 pthread_mutex_unlock (&mut); in tf()
85 pthread_mutex_lock (&mut); in do_test()
100 pthread_cond_wait (&cond2, &mut); in do_test()
104 pthread_mutex_unlock (&mut); in do_test()
119 pthread_mutex_unlock (&mut); in do_test()
139 pthread_mutex_lock (&mut); in do_test()
A Dtst-cond9.c27 static pthread_mutex_t mut = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP; variable
33 int err = pthread_cond_wait (&cond, &mut); in tf()
55 err = pthread_cond_timedwait (&cond, &mut, &ts); in tf()
78 printf ("&cond = %p\n&mut = %p\n", &cond, &mut); in do_test()
80 err = pthread_cond_wait (&cond, &mut); in do_test()
102 err = pthread_cond_timedwait (&cond, &mut, &ts); in do_test()
115 if (pthread_mutex_lock (&mut) != 0) in do_test()
A Dtst-cond5.c27 static pthread_mutex_t mut; variable
51 if (pthread_mutex_init (&mut, &ma) != 0) in do_test()
58 if (pthread_mutex_lock (&mut) != 0) in do_test()
78 err = pthread_cond_timedwait (&cond, &mut, &ts); in do_test()
92 err = pthread_mutex_unlock (&mut); in do_test()
A Dtst-cond14.c26 static pthread_mutex_t mut = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; variable
32 if (pthread_mutex_lock (&mut) != 0) in tf()
37 if (pthread_mutex_lock (&mut) != 0) in tf()
42 if (pthread_mutex_lock (&mut) != 0) in tf()
54 if (pthread_cond_wait (&cond, &mut) != 0) in tf()
A Dtst-cond2.c24 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable
38 err = pthread_mutex_lock (&mut); in tf()
53 err = pthread_cond_wait (&cond, &mut); in tf()
59 err = pthread_mutex_unlock (&mut); in tf()
79 printf ("&cond = %p\n&mut = %p\n", &cond, &mut); in do_test()
129 err = pthread_mutex_lock (&mut); in do_test()
140 err = pthread_mutex_unlock (&mut); in do_test()
A Dtst-once3.c29 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable
39 if (pthread_mutex_lock (&mut) != 0) in once_handler1()
55 pthread_cond_wait (&cond, &mut); in once_handler1()
114 if (pthread_mutex_lock (&mut) != 0) in do_test()
121 if (pthread_mutex_unlock (&mut) != 0) in do_test()
A Dtst-cond10.c29 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable
37 if (pthread_mutex_lock (&mut) != 0) in tf()
50 if (pthread_cond_wait (&cond, &mut) != 0) in tf()
56 if (pthread_mutex_unlock (&mut) != 0) in tf()
125 if (pthread_mutex_lock (&mut) != 0) in do_test()
130 if (pthread_mutex_unlock (&mut) != 0) in do_test()
A Dtst-cond19.c26 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable
43 int e = pthread_cond_timedwait (&cond, &mut, &ts); in do_test()
57 e = pthread_cond_timedwait (&cond, &mut, &ts); in do_test()
A Dtst-once4.c28 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable
38 if (pthread_mutex_lock (&mut) != 0) in once_handler1()
51 pthread_cond_wait (&cond, &mut); in once_handler1()
130 if (pthread_mutex_lock (&mut) != 0) in do_test()
137 if (pthread_mutex_unlock (&mut) != 0) in do_test()
A Dtst-mutex11.c27 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable
32 TEST_COMPARE (pthread_mutex_clocklock (&mut, clockid, &ts), EINVAL); in test_bad_clockid()

Completed in 11 milliseconds