Lines Matching refs:nwaking_threads
52 static unsigned int nblocked_threads = 0, nwaking_threads = 0; variable
62 OPT_UINTEGER('w', "nwakers", &nwaking_threads, "Specify amount of waking threads"),
100 pthread_barrier_init(&barrier, NULL, nwaking_threads + 1); in wakeup_threads()
103 for (i = 0; i < nwaking_threads; i++) { in wakeup_threads()
116 for (i = 0; i < nwaking_threads; i++) in wakeup_threads()
171 for (i = 0; i < nwaking_threads; i++) { in print_run()
207 for (i = 0; i < nwaking_threads; i++) { in do_run_stats()
250 if (nwaking_threads > nblocked_threads || !nwaking_threads) in bench_futex_wake_parallel()
251 nwaking_threads = nblocked_threads; in bench_futex_wake_parallel()
253 if (nblocked_threads % nwaking_threads) in bench_futex_wake_parallel()
259 nwakes = nblocked_threads/nwaking_threads; in bench_futex_wake_parallel()
271 &futex, nwaking_threads, nwakes); in bench_futex_wake_parallel()
282 waking_worker = calloc(nwaking_threads, sizeof(*waking_worker)); in bench_futex_wake_parallel()