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
148 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_hash()
149 if (!worker) in bench_futex_hash()
167 worker[i].tid = i; in bench_futex_hash()
168 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
169 if (!worker[i].futex) in bench_futex_hash()
179 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash()
180 (void *)(struct worker *) &worker[i]); in bench_futex_hash()
197 ret = pthread_join(worker[i].thread, NULL); in bench_futex_hash()
209 worker[i].ops / bench__runtime.tv_sec : 0; in bench_futex_hash()
214 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
217 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()
218 &worker[i].futex[nfutexes-1], t); in bench_futex_hash()
221 zfree(&worker[i].futex); in bench_futex_hash()
226 free(worker); in bench_futex_hash()