Lines Matching defs:worker
91 int worker;
106 for (worker = 0; worker < NTHREADS; worker++)
108 ids[worker] = worker;
109 if (pthread_create(&threads[worker], &tattr,
110 thread_function, &ids[worker]))
114 for (worker = 0; worker < NTHREADS; worker++)
116 if (pthread_join(threads[worker], static_cast<void **>(&status)))
119 if (*((int *)status) != worker)