Lines Matching defs:workQueue
452 static WorkPiece workQueue = NULL;
458 * Adds a WorkPiece to the workQueue in FIFO order by priority.
462 * If the workQueue was previously empty, then makes sure that
473 if (workQueue == NULL) {
475 workQueue = piece;
478 if (workQueue->priority > priority) {
479 piece->next = workQueue;
480 workQueue = piece;
484 for (n = workQueue; n->next && n->next->priority <= priority;)
495 WorkPiece piece = workQueue;
499 workQueue = piece->next;
501 if (workQueue != NULL)
511 * Drains foreground tasks from the workQueue.
517 while (workQueue && workQueue->priority < BACKGROUND)