/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_barrier.c | 59 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 63 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 79 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); 80 PTHREAD_REQUIRE(pthread_barrier_init(&barrier, NULL, COUNT)); 83 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 85 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 86 PTHREAD_REQUIRE(pthread_create(&new[i], NULL, threadfunc, 92 PTHREAD_REQUIRE(pthread_join(new[i], &joinval)); 93 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 95 PTHREAD_REQUIRE(pthread_mutex_unloc [all...] |
H A D | t_cond.c | 59 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 64 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 65 PTHREAD_REQUIRE(pthread_cond_signal(&cond)); 83 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); 84 PTHREAD_REQUIRE(pthread_cond_init(&cond, NULL)); 86 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 90 PTHREAD_REQUIRE(pthread_create(&new, NULL, signal_delay_wait_threadfunc, 96 PTHREAD_REQUIRE(pthread_cond_wait(&cond, &mutex)); 102 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 105 PTHREAD_REQUIRE(pthread_joi [all...] |
H A D | t_name.c | 57 PTHREAD_REQUIRE(pthread_getname_np(self, retname, sizeof(retname))); 60 PTHREAD_REQUIRE(pthread_setname_np(self, non_const_name, NULL)); 62 PTHREAD_REQUIRE(pthread_getname_np(self, retname, sizeof(retname))); 80 PTHREAD_REQUIRE(pthread_attr_init(&attr)); 81 PTHREAD_REQUIRE(pthread_attr_getname_np(&attr, retname, 85 PTHREAD_REQUIRE(pthread_attr_setname_np(&attr, "%s", 89 PTHREAD_REQUIRE(pthread_getname_np(self, retname, sizeof(retname))); 92 PTHREAD_REQUIRE(pthread_create(&thr, &attr, threadfunc, NULL)); 93 PTHREAD_REQUIRE(pthread_join(thr, NULL));
|
H A D | t_mutex.c | 110 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); 112 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy)); 113 PTHREAD_REQUIRE(pthread_create(&new, NULL, mutex1_threadfunc, &x)); 119 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 121 PTHREAD_REQUIRE(pthread_join(new, &joinval)); 123 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy)); 128 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 139 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy)); 141 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 171 PTHREAD_REQUIRE(pthread_mutex_ini [all...] |
H A D | t_preempt.c | 59 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 63 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 64 PTHREAD_REQUIRE(pthread_cond_signal(&cond)); 94 PTHREAD_REQUIRE(pthread_cond_init(&cond, NULL)); 95 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); 97 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 102 PTHREAD_REQUIRE(pthread_create(&new, NULL, threadfunc, NULL)); 106 PTHREAD_REQUIRE(pthread_cond_wait(&cond, &mutex)); 111 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex)); 118 PTHREAD_REQUIRE(pthread_joi [all...] |
H A D | t_rwlock.c | 92 PTHREAD_REQUIRE(pthread_create(&t, NULL, do_nothing, NULL)); 93 PTHREAD_REQUIRE(pthread_rwlock_init(&lk, NULL)); 94 PTHREAD_REQUIRE(pthread_rwlock_rdlock(&lk)); 95 PTHREAD_REQUIRE(pthread_rwlock_rdlock(&lk)); 96 PTHREAD_REQUIRE(pthread_rwlock_unlock(&lk)); 107 PTHREAD_REQUIRE(pthread_rwlock_unlock(&lk)); 112 PTHREAD_REQUIRE(pthread_rwlock_timedwrlock(&lk, &to)); 130 PTHREAD_REQUIRE(pthread_rwlock_rdlock(&static_rwlock)); 131 PTHREAD_REQUIRE(pthread_rwlock_unlock(&static_rwlock)); 132 PTHREAD_REQUIRE(pthread_rwlock_destro [all...] |
H A D | t_detach.c | 67 PTHREAD_REQUIRE(pthread_attr_init(&attr)); 68 PTHREAD_REQUIRE(pthread_attr_setdetachstate(&attr, state)); 69 PTHREAD_REQUIRE(pthread_create(&t, &attr, func, NULL)); 75 PTHREAD_REQUIRE(pthread_detach(t));
|
H A D | t_once.c | 69 PTHREAD_REQUIRE(pthread_once(&once, ofunc)); 70 PTHREAD_REQUIRE(pthread_once(&once, ofunc)); 89 PTHREAD_REQUIRE(pthread_once(&once, once2_ofunc)); 113 PTHREAD_REQUIRE(pthread_create(&threads[i], NULL, once2_threadfunc, &id[i])); 117 PTHREAD_REQUIRE(pthread_join(threads[i], NULL)); 128 PTHREAD_REQUIRE(pthread_mutex_unlock(mu)); 140 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 142 PTHREAD_REQUIRE(pthread_once(&once, once3_ofunc)); 177 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex)); 178 PTHREAD_REQUIRE(pthread_creat [all...] |
H A D | t_fpu.c | 105 PTHREAD_REQUIRE(pthread_mutex_lock(&recursion_depth_lock)); 107 PTHREAD_REQUIRE(pthread_mutex_unlock(&recursion_depth_lock)); 121 PTHREAD_REQUIRE(pthread_create(&s2, 0, bar, 0)); 139 PTHREAD_REQUIRE(pthread_mutex_init(&recursion_depth_lock, 0)); 141 PTHREAD_REQUIRE(pthread_create(&s5, 0, stir, stirseed));
|
H A D | h_common.h | 6 #define PTHREAD_REQUIRE(x) \ macro
|
H A D | t_kill.c | 125 PTHREAD_REQUIRE(pthread_create(&th[i].id, NULL, f, &th[i])); 134 PTHREAD_REQUIRE(pthread_kill(th[i].id, SIGUSR1)); 138 PTHREAD_REQUIRE(pthread_join(th[i].id, NULL));
|
H A D | t_siglongjmp.c | 83 PTHREAD_REQUIRE(pthread_create(&t, NULL, thread, NULL)); 87 PTHREAD_REQUIRE(pthread_sigmask(SIG_SETMASK, &nset, NULL)); 97 PTHREAD_REQUIRE(pthread_sigmask(0, NULL, &nset));
|
H A D | t_sleep.c | 84 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc, NULL)); 89 PTHREAD_REQUIRE(pthread_sigmask(SIG_BLOCK, &mtsm, 0)); 96 PTHREAD_REQUIRE(pthread_join(thread, NULL));
|
H A D | t_join.c | 65 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc1, NULL)); 66 PTHREAD_REQUIRE(pthread_join(thread, NULL)); 115 PTHREAD_REQUIRE(pthread_join(thread[i], &val));
|
H A D | t_fork.c | 82 PTHREAD_REQUIRE(pthread_create(&p, NULL, print_pid, NULL)); 90 PTHREAD_REQUIRE(pthread_join(p, NULL));
|
H A D | t_swapcontext.c | 108 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc, NULL)); 109 PTHREAD_REQUIRE(pthread_join(thread, NULL));
|
H A D | t_sigmask.c | 194 PTHREAD_REQUIRE(pthread_create(&thread, NULL, 196 PTHREAD_REQUIRE(pthread_join(thread, NULL)); 235 PTHREAD_REQUIRE(pthread_sigmask(SIG_SETMASK, &act.sa_mask, NULL)); 237 PTHREAD_REQUIRE(pthread_create(&id, NULL, incorrect_mask_bug_sleeper, 242 PTHREAD_REQUIRE(pthread_sigmask(SIG_SETMASK, &act.sa_mask, NULL));
|
H A D | t_sem.c | 190 PTHREAD_REQUIRE(pthread_create(&threads[i], NULL, 201 PTHREAD_REQUIRE(pthread_join(threads[i], NULL)); 268 PTHREAD_REQUIRE(pthread_create(&t, NULL, threadfunc, NULL)); 269 PTHREAD_REQUIRE(pthread_join(t, NULL));
|
H A D | t_condwait.c | 62 PTHREAD_REQUIRE(pthread_condattr_init(&attr)); 63 PTHREAD_REQUIRE(pthread_condattr_setclock(&attr, clck));
|
H A D | t_sigalarm.c | 93 PTHREAD_REQUIRE(pthread_create(&self, NULL, setup, NULL));
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread_dbg/ |
H A D | t_threads.c | 89 PTHREAD_REQUIRE 152 PTHREAD_REQUIRE 222 PTHREAD_REQUIRE 294 PTHREAD_REQUIRE 299 PTHREAD_REQUIRE 375 PTHREAD_REQUIRE 380 PTHREAD_REQUIRE 448 PTHREAD_REQUIRE 522 PTHREAD_REQUIRE 596 PTHREAD_REQUIRE [all...] |
H A D | h_common.h | 40 #define PTHREAD_REQUIRE(x) \ macro
|