Home
last modified time | relevance | path

Searched refs:barrier (Results 1 – 25 of 48) sorted by relevance

12

/glibc-2.36/sysdeps/htl/
Dpt-barrier-wait.c25 pthread_barrier_wait (pthread_barrier_t *barrier) in pthread_barrier_wait() argument
27 __pthread_spin_wait (&barrier->__lock); in pthread_barrier_wait()
28 if (--barrier->__pending == 0) in pthread_barrier_wait()
30 barrier->__pending = barrier->__count; in pthread_barrier_wait()
32 if (barrier->__count == 1) in pthread_barrier_wait()
33 __pthread_spin_unlock (&barrier->__lock); in pthread_barrier_wait()
39 __pthread_queue_iterate (barrier->__queue, wakeup) in pthread_barrier_wait()
46 __pthread_dequeuing_iterate (barrier->__queue, wakeup) in pthread_barrier_wait()
49 barrier->__queue = NULL; in pthread_barrier_wait()
50 __pthread_spin_unlock (&barrier->__lock); in pthread_barrier_wait()
[all …]
Dpt-barrier-init.c26 pthread_barrier_init (pthread_barrier_t *barrier, in pthread_barrier_init() argument
34 memset (barrier, 0, sizeof *barrier); in pthread_barrier_init()
36 barrier->__lock = PTHREAD_SPINLOCK_INITIALIZER; in pthread_barrier_init()
37 barrier->__pending = count; in pthread_barrier_init()
38 barrier->__count = count; in pthread_barrier_init()
47 barrier->__attr = malloc (sizeof *attr); in pthread_barrier_init()
48 if (barrier->__attr == NULL) in pthread_barrier_init()
51 *barrier->__attr = *attr; in pthread_barrier_init()
/glibc-2.36/login/
Dtst-pututxline-lockfail.c42 static pthread_barrier_t *barrier; variable
83 xpthread_barrier_wait (barrier); in subprocess_lock_file()
86 xpthread_barrier_wait (barrier); in subprocess_lock_file()
113 barrier = support_shared_allocate (sizeof (*barrier)); in do_test()
114 xpthread_barrier_init (barrier, &attr, 2); in do_test()
126 xpthread_barrier_wait (barrier); in do_test()
136 xpthread_barrier_wait (barrier); in do_test()
170 xpthread_barrier_destroy (barrier); in do_test()
171 support_shared_free (barrier); in do_test()
Dtst-pututxline-cache.c45 static pthread_barrier_t *barrier; variable
111 xpthread_barrier_wait (barrier); in process1()
114 xpthread_barrier_wait (barrier); in process1()
126 xpthread_barrier_wait (barrier); in process2()
139 xpthread_barrier_wait (barrier); in process2()
150 barrier = support_shared_allocate (sizeof (*barrier)); in do_test()
151 xpthread_barrier_init (barrier, &attr, 2); in do_test()
186 xpthread_barrier_destroy (barrier); in do_test()
187 support_shared_free (barrier); in do_test()
/glibc-2.36/malloc/
Dtst-malloc-thread-exit.c54 pthread_barrier_t *barrier = closure; in malloc_first_thread() local
56 xpthread_barrier_wait (barrier); in malloc_first_thread()
64 pthread_barrier_t *barrier = closure; in wait_first_thread() local
65 xpthread_barrier_wait (barrier); in wait_first_thread()
77 pthread_barrier_t barrier; in outer_thread() local
78 xpthread_barrier_init (&barrier, NULL, inner_thread_count + 1); in outer_thread()
86 threads[i] = xpthread_create (NULL, func, &barrier); in outer_thread()
88 xpthread_barrier_wait (&barrier); in outer_thread()
91 xpthread_barrier_destroy (&barrier); in outer_thread()
Dtst-malloc_info.c30 static pthread_barrier_t barrier; variable
62 xpthread_barrier_wait (&barrier); in allocation_thread_function()
66 xpthread_barrier_wait (&barrier); in allocation_thread_function()
81 xpthread_barrier_init (&barrier, NULL, thread_count + 1); in do_test()
87 xpthread_barrier_wait (&barrier); in do_test()
91 xpthread_barrier_wait (&barrier); in do_test()
Dtst-mallocfork3.c46 static pthread_barrier_t barrier; variable
120 xpthread_barrier_wait (&barrier); in signal_sender()
125 xpthread_barrier_wait (&barrier); in signal_sender()
148 xpthread_barrier_init (&barrier, NULL, in do_test()
168 xpthread_barrier_wait (&barrier); in do_test()
192 xpthread_barrier_wait (&barrier); in do_test()
Dtst-mallocfork2.c55 static struct { pthread_barrier_t barrier; } *shared; member
118 xpthread_barrier_wait (&shared->barrier); in signal_sender()
127 xpthread_barrier_wait (&shared->barrier); in signal_sender()
184 xpthread_barrier_init (&shared->barrier, &attr, in do_test()
210 xpthread_barrier_wait (&shared->barrier); in do_test()
233 xpthread_barrier_wait (&shared->barrier); in do_test()
/glibc-2.36/sysdeps/pthread/
Dtst-cancel28.c30 static pthread_barrier_t barrier; variable
36 xpthread_barrier_wait (&barrier); in cl()
44 xpthread_barrier_wait (&barrier); in thread_handler()
62 xpthread_barrier_init (&barrier, NULL, 2); in do_test()
68 xpthread_barrier_wait (&barrier); in do_test()
72 xpthread_barrier_wait (&barrier); in do_test()
Dtst-mutex10.c27 static pthread_barrier_t barrier; variable
44 xpthread_barrier_wait (&barrier); in thr_func()
58 xpthread_barrier_wait (&barrier); in thr_func()
71 xpthread_barrier_init (&barrier, NULL, thread_count); in do_test()
80 xpthread_barrier_destroy (&barrier); in do_test()
Dtst-pthread-raise-blocked-self.c44 static pthread_barrier_t barrier; variable
49 xpthread_barrier_wait (&barrier); in waiting_thread()
58 xpthread_barrier_init (&barrier, NULL, 2); in do_test()
67 xpthread_barrier_wait (&barrier); in do_test()
Dtst-create-detached.c60 static pthread_barrier_t barrier; variable
66 xpthread_barrier_wait (&barrier); in creator_thread()
120 xpthread_barrier_init (&barrier, NULL, creator_threads); in do_test()
132 xpthread_barrier_destroy (&barrier); in do_test()
/glibc-2.36/elf/
Dtst-tls-ie.c39 static pthread_barrier_t barrier; variable
45 xpthread_barrier_wait (&barrier); in blocked_thread_func()
47 xpthread_barrier_wait (&barrier); in blocked_thread_func()
68 int ret = pthread_barrier_init (&barrier, NULL, 2); in do_test()
78 xpthread_barrier_wait (&barrier); in do_test()
103 xpthread_barrier_wait (&barrier); in do_test()
Dtst-tls-ie-dlmopen.c40 static pthread_barrier_t barrier; variable
46 xpthread_barrier_wait (&barrier); in blocked_thread_func()
48 xpthread_barrier_wait (&barrier); in blocked_thread_func()
69 int ret = pthread_barrier_init (&barrier, NULL, 2); in do_test()
79 xpthread_barrier_wait (&barrier); in do_test()
104 xpthread_barrier_wait (&barrier); in do_test()
Dtst-tls-manydynamic.c87 static pthread_barrier_t barrier; variable
93 xpthread_barrier_wait (&barrier); in blocked_thread_func()
97 xpthread_barrier_wait (&barrier); in blocked_thread_func()
105 int ret = pthread_barrier_init (&barrier, NULL, 2); in do_test()
115 xpthread_barrier_wait (&barrier); in do_test()
143 xpthread_barrier_wait (&barrier); in do_test()
/glibc-2.36/htl/tests/
Dtest-6.c33 pthread_barrier_t *barrier = arg; in dowait() local
36 ret = pthread_barrier_wait (barrier); in dowait()
45 pthread_barrier_t barrier; in main() local
66 err = pthread_barrier_init (&barrier, &attr, THREADS + 1); in main()
75 err = pthread_create (&tid[i], 0, dowait, &barrier); in main()
83 = pthread_barrier_wait (&barrier) == PTHREAD_BARRIER_SERIAL_THREAD in main()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dtst-gettid-kill.c34 static pthread_barrier_t barrier; variable
68 xpthread_barrier_wait (&barrier); in thread_pause_noreturn()
79 xpthread_barrier_wait (&barrier); in thread_read_signal()
110 xpthread_barrier_init (&barrier, NULL, 3); in do_test()
115 xpthread_barrier_wait (&barrier); in do_test()
125 xpthread_barrier_destroy (&barrier); in do_test()
Dtst-pkey.c36 static pthread_barrier_t barrier; variable
151 pthread_barrier_wait (&barrier); in delayed_thread_func()
188 xpthread_barrier_init (&barrier, NULL, 2); in do_test()
235 pthread_barrier_wait (&barrier); in do_test()
373 xpthread_barrier_wait (&barrier); in do_test()
401 xpthread_barrier_destroy (&barrier); in do_test()
/glibc-2.36/debug/
Dtst-read-chk-cancel.c24 static pthread_barrier_t barrier; variable
29 xpthread_barrier_wait (&barrier); in read_thread()
41 xpthread_barrier_init (&barrier, 0, 2); in do_test()
44 xpthread_barrier_wait (&barrier); in do_test()
/glibc-2.36/rt/
Dtst-timer-sigmask.c30 static pthread_barrier_t barrier; variable
54 xpthread_barrier_wait (&barrier); in thread_handler()
67 xpthread_barrier_init (&barrier, NULL, 2); in do_test()
73 xpthread_barrier_wait (&barrier); in do_test()
Dtst-cpuclock2.c40 static pthread_barrier_t barrier; variable
46 pthread_barrier_wait (&barrier); in chew_cpu()
163 pthread_barrier_init (&barrier, NULL, 2); in do_test()
179 pthread_barrier_wait (&barrier); in do_test()
/glibc-2.36/nptl/
Dtst-audit-threads.c40 pthread_barrier_t barrier; variable
45 pthread_barrier_wait (&barrier); in sync_all()
78 xpthread_barrier_init (&barrier, NULL, num_threads); in do_test()
/glibc-2.36/resolv/
Dtst-resolv-threads.c233 static pthread_barrier_t barrier; variable
241 xpthread_barrier_wait (&barrier); in byname()
284 xpthread_barrier_wait (&barrier); in thread_byname2_af_inet6()
306 xpthread_barrier_wait (&barrier); in gai()
400 xpthread_barrier_init (&barrier, NULL, thread_count + 1); in do_test()
414 xpthread_barrier_wait (&barrier); /* Start the test threads. */ in do_test()
/glibc-2.36/stdlib/
Dtst-arc4random-fork.c59 pthread_barrier_t barrier; member
90 xpthread_barrier_wait (&shared_data->barrier); in subprocess()
182 xpthread_barrier_init (&shared_data->barrier, &attr, processes); in do_test()
190 xpthread_barrier_destroy (&shared_data->barrier); in do_test()
/glibc-2.36/support/
Dxthread.h45 void xpthread_barrier_init (pthread_barrier_t *barrier,
47 void xpthread_barrier_destroy (pthread_barrier_t *barrier);
101 int xpthread_barrier_wait (pthread_barrier_t *barrier);

12