Lines Matching refs:worker
37 struct worker { struct
62 struct worker *w = (struct worker *) arg; in workerfn() argument
117 struct worker *worker = NULL; in bench_futex_hash() local
134 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_hash()
135 if (!worker) in bench_futex_hash()
153 worker[i].tid = i; in bench_futex_hash()
154 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
155 if (!worker[i].futex) in bench_futex_hash()
165 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash()
166 (void *)(struct worker *) &worker[i]); in bench_futex_hash()
183 ret = pthread_join(worker[i].thread, NULL); in bench_futex_hash()
194 unsigned long t = worker[i].ops/runtime.tv_sec; in bench_futex_hash()
199 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
202 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()
203 &worker[i].futex[nfutexes-1], t); in bench_futex_hash()
206 free(worker[i].futex); in bench_futex_hash()
211 free(worker); in bench_futex_hash()