Lines Matching refs:worker
46 struct worker {
70 struct worker *w = (struct worker *) arg;
127 struct worker *worker = NULL;
148 worker = calloc(nthreads, sizeof(*worker));
149 if (!worker)
167 worker[i].tid = i;
168 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex));
169 if (!worker[i].futex)
179 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn,
180 (void *)(struct worker *) &worker[i]);
197 ret = pthread_join(worker[i].thread, NULL);
209 worker[i].ops / bench__runtime.tv_sec : 0;
214 worker[i].tid, &worker[i].futex[0], t);
217 worker[i].tid, &worker[i].futex[0],
218 &worker[i].futex[nfutexes-1], t);
221 zfree(&worker[i].futex);
226 free(worker);