Lines Matching refs:worker
44 struct worker { struct
68 struct worker *w = (struct worker *) arg; in workerfn() argument
125 struct worker *worker = NULL; in bench_futex_hash() local
145 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_hash()
146 if (!worker) in bench_futex_hash()
164 worker[i].tid = i; in bench_futex_hash()
165 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
166 if (!worker[i].futex) in bench_futex_hash()
176 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash()
177 (void *)(struct worker *) &worker[i]); in bench_futex_hash()
194 ret = pthread_join(worker[i].thread, NULL); in bench_futex_hash()
205 unsigned long t = worker[i].ops/runtime.tv_sec; in bench_futex_hash()
210 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
213 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()
214 &worker[i].futex[nfutexes-1], t); in bench_futex_hash()
217 free(worker[i].futex); in bench_futex_hash()
222 free(worker); in bench_futex_hash()