HomeSort by: relevance | last modified time | path
    Searched refs:PTHREAD_REQUIRE (Results 1 - 20 of 20) sorted by relevancy

  /src/tests/lib/libpthread/
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_unlock(&mutex))
    [all...]
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_join(new, &joinval))
    [all...]
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));
161 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL))
    [all...]
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));
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_join(new, &joinval))
    [all...]
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_destroy(&static_rwlock))
    [all...]
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));
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_common.h 6 #define PTHREAD_REQUIRE(x) \
t_once.c 77 PTHREAD_REQUIRE(pthread_once(&once, ofunc));
78 PTHREAD_REQUIRE(pthread_once(&once, ofunc));
97 PTHREAD_REQUIRE(pthread_once(&once, once2_ofunc));
121 PTHREAD_REQUIRE(pthread_create(&threads[i], NULL, once2_threadfunc, &id[i]));
125 PTHREAD_REQUIRE(pthread_join(threads[i], NULL));
136 PTHREAD_REQUIRE(pthread_mutex_unlock(mu));
148 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
150 PTHREAD_REQUIRE(pthread_once(&once, once3_ofunc));
185 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
186 PTHREAD_REQUIRE(pthread_create(&thread, NULL, once3_threadfunc, NULL))
    [all...]
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));
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));
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));
t_fork.c 82 PTHREAD_REQUIRE(pthread_create(&p, NULL, print_pid, NULL));
90 PTHREAD_REQUIRE(pthread_join(p, NULL));
t_swapcontext.c 102 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc, NULL));
103 PTHREAD_REQUIRE(pthread_join(thread, NULL));
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));
t_join.c 65 PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc1, NULL));
66 PTHREAD_REQUIRE(pthread_join(thread, NULL));
116 PTHREAD_REQUIRE(pthread_join(thread[i], &val));
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));
t_condwait.c 62 PTHREAD_REQUIRE(pthread_condattr_init(&attr));
63 PTHREAD_REQUIRE(pthread_condattr_setclock(&attr, clck));
t_sigalarm.c 93 PTHREAD_REQUIRE(pthread_create(&self, NULL, setup, NULL));

Completed in 24 milliseconds