Lines Matching refs:stage
28 * <------ "stage" -----> <------ "stage" ----->
32 * By default there are 2 stage (worker) threads per production line.
34 * queues it on an output queue. By default the initial stage (producer)
100 stage_info_t *stage[WORKERS_MAX];
215 DBG("Starting %s set: %d stage: %d\n", sp->name, lp->setnum, sp->stagenum);
442 lp->stage[j] = sp;
454 sp = lp->stage[j];
462 sp->input = &lp->stage[j]->bufq;
463 sp->output = &lp->stage[(j + 1) % stages]->bufq;
470 TAILQ_INSERT_TAIL(&lp->stage[0]->bufq.queue, &work_array[j], link);
477 if (ret = pthread_create(&lp->stage[j]->thread, NULL,
479 (void *) lp->stage[j]))
490 if(ret = pthread_join(lp->stage[j]->thread, (void **)&status))