Lines Matching refs:waiting
8 * are waiting on.
107 ws->pending = ws->polled = ws->idle = ws->waiting = NULL;
160 if (chan->wait_for) // if a thread is waiting for this specific event
164 // and a thread is not waiting for a token
166 // and a thread is not waiting specifically for that event
191 // check a waiting queue for matching event
192 for (chan = ws->waiting; chan; ) {
198 if (chan == ws->waiting)
271 dequeue(&ws->waiting, chan);
318 * Pending events are in a pending queue and in a waiting queue.
319 * A pending event then will be removed from a pending/waiting queue and become
325 * If there's no matching thread, add it to a waiting queue.
330 * \param waitfor Specific event that we're waiting for (can be NULL)
366 enqueue(&ws->waiting, chan);
383 enqueue(&ws->waiting, chan);
420 * used with great care, to avoid the creation of busy-waiting loops.
495 * \param waitfor Event, that we are waiting for
743 // remove this channel from the queue in which it is waiting
762 dequeue(&ws->waiting, chan);
822 dequeue(&ws->waiting, chan);
823 enqueue(&new_ws->waiting, chan);