Lines Matching refs:worker
44 struct worker { struct
76 struct worker *w = (struct worker *) arg; in workerfn()
134 struct worker *worker = NULL; in bench_futex_hash() local
162 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_hash()
163 if (!worker) in bench_futex_hash()
188 worker[i].tid = i; in bench_futex_hash()
189 worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
190 if (!worker[i].futex) in bench_futex_hash()
201 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash()
202 (void *)(struct worker *) &worker[i]); in bench_futex_hash()
222 ret = pthread_join(worker[i].thread, NULL); in bench_futex_hash()
234 worker[i].ops / bench__runtime.tv_sec : 0; in bench_futex_hash()
239 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
242 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()
243 &worker[i].futex[params.nfutexes-1], t); in bench_futex_hash()
246 zfree(&worker[i].futex); in bench_futex_hash()
251 free(worker); in bench_futex_hash()