Lines Matching defs:worker
27 struct worker {
35 static struct worker *worker;
84 struct worker *w = (struct worker *) arg;
121 static void create_threads(struct worker *w, struct perf_cpu_map *cpu)
138 worker[i].tid = i;
141 worker[i].futex = calloc(1, sizeof(u_int32_t));
142 if (!worker[i].futex)
145 worker[i].futex = &global_futex;
155 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) {
192 worker = calloc(params.nthreads, sizeof(*worker));
193 if (!worker)
210 create_threads(worker, cpu);
222 ret = pthread_join(worker[i].thread, NULL);
234 worker[i].ops / bench__runtime.tv_sec : 0;
239 worker[i].tid, worker[i].futex, t);
242 zfree(&worker[i].futex);
247 free(worker);