Lines Matching refs:worker
46 struct worker { struct
70 struct worker *w = (struct worker *) arg; in workerfn() argument
127 struct worker *worker = NULL; in bench_futex_hash() local
147 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_hash()
148 if (!worker) in bench_futex_hash()
166 worker[i].tid = i; in bench_futex_hash()
167 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
168 if (!worker[i].futex) in bench_futex_hash()
178 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash()
179 (void *)(struct worker *) &worker[i]); in bench_futex_hash()
196 ret = pthread_join(worker[i].thread, NULL); in bench_futex_hash()
207 unsigned long t = worker[i].ops/runtime.tv_sec; in bench_futex_hash()
212 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
215 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()
216 &worker[i].futex[nfutexes-1], t); in bench_futex_hash()
219 zfree(&worker[i].futex); in bench_futex_hash()
224 free(worker); in bench_futex_hash()