Lines Matching refs:worker
42 struct worker { struct
72 struct worker *w = (struct worker *) arg; in workerfn()
129 struct worker *worker = NULL; in bench_futex_hash() local
155 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_hash()
156 if (!worker) in bench_futex_hash()
174 worker[i].tid = i; in bench_futex_hash()
175 worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
176 if (!worker[i].futex) in bench_futex_hash()
186 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash()
187 (void *)(struct worker *) &worker[i]); in bench_futex_hash()
204 ret = pthread_join(worker[i].thread, NULL); in bench_futex_hash()
216 worker[i].ops / bench__runtime.tv_sec : 0; in bench_futex_hash()
221 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
224 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()
225 &worker[i].futex[params.nfutexes-1], t); in bench_futex_hash()
228 zfree(&worker[i].futex); in bench_futex_hash()
233 free(worker); in bench_futex_hash()