Lines Matching refs:worker
43 struct worker { struct
73 struct worker *w = (struct worker *) arg; in workerfn()
130 struct worker *worker = NULL; in bench_futex_hash() local
158 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_hash()
159 if (!worker) in bench_futex_hash()
183 worker[i].tid = i; in bench_futex_hash()
184 worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
185 if (!worker[i].futex) in bench_futex_hash()
196 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash()
197 (void *)(struct worker *) &worker[i]); in bench_futex_hash()
217 ret = pthread_join(worker[i].thread, NULL); in bench_futex_hash()
229 worker[i].ops / bench__runtime.tv_sec : 0; in bench_futex_hash()
234 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
237 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()
238 &worker[i].futex[params.nfutexes-1], t); in bench_futex_hash()
241 zfree(&worker[i].futex); in bench_futex_hash()
246 free(worker); in bench_futex_hash()