/sysdeps/pthread/ |
A D | tst-cond3.c | 35 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 D | tst-cond11.c | 40 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 D | tst-cond1.c | 25 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 D | tst-cond8.c | 35 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 D | tst-cond27.c | 32 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 D | tst-cond15.c | 28 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 D | tst-cond20.c | 28 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 D | tst-cond9.c | 27 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 D | tst-cond5.c | 27 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 D | tst-cond14.c | 26 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 D | tst-cond2.c | 24 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 D | tst-once3.c | 29 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 D | tst-cond10.c | 29 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 D | tst-cond19.c | 26 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 D | tst-once4.c | 28 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 D | tst-mutex11.c | 27 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; variable 32 TEST_COMPARE (pthread_mutex_clocklock (&mut, clockid, &ts), EINVAL); in test_bad_clockid()
|