/glibc-2.36/sysdeps/htl/ |
D | pt-barrier-wait.c | 25 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 …]
|
D | pt-barrier-init.c | 26 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/ |
D | tst-pututxline-lockfail.c | 42 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()
|
D | tst-pututxline-cache.c | 45 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/ |
D | tst-malloc-thread-exit.c | 54 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()
|
D | tst-malloc_info.c | 30 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()
|
D | tst-mallocfork3.c | 46 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()
|
D | tst-mallocfork2.c | 55 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/ |
D | tst-cancel28.c | 30 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()
|
D | tst-mutex10.c | 27 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()
|
D | tst-pthread-raise-blocked-self.c | 44 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()
|
D | tst-create-detached.c | 60 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/ |
D | tst-tls-ie.c | 39 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()
|
D | tst-tls-ie-dlmopen.c | 40 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()
|
D | tst-tls-manydynamic.c | 87 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/ |
D | test-6.c | 33 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/ |
D | tst-gettid-kill.c | 34 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()
|
D | tst-pkey.c | 36 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/ |
D | tst-read-chk-cancel.c | 24 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/ |
D | tst-timer-sigmask.c | 30 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()
|
D | tst-cpuclock2.c | 40 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/ |
D | tst-audit-threads.c | 40 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/ |
D | tst-resolv-threads.c | 233 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/ |
D | tst-arc4random-fork.c | 59 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/ |
D | xthread.h | 45 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);
|