Lines Matching defs:waiting
161 unsigned int waiting; /* # clients waiting */
177 Dt_t* waiting; /* pending events */
301 con->waiting = 0;
310 * notify connections waiting on ep
322 if (cp->waiting && (wp = (Waiting_t*)dtmatch(cp->waiting, &ep)))
334 n = ep->waiting == 1;
335 dtdelete(cp->waiting, wp);
352 if (!con->waiting && !(con->waiting = dtopen(&state->waitdisc, Dtset)))
354 error(ERROR_SYSTEM|3, "out of space [waiting]");
359 if (dtmatch(con->waiting, &ep))
374 error(ERROR_SYSTEM|3, "out of space [waiting]");
377 ep->waiting++;
380 dtinsert(con->waiting, wp);
398 if (cp->waiting && (n = dtsize(cp->waiting)) > 0)
400 log(state, con, 0, "waiting connection=%d count=%d", cp->fd, n);
401 for (wp = (Waiting_t*)dtfirst(cp->waiting); wp; wp = (Waiting_t*)dtnext(cp->waiting, wp))
775 if (x->waiting)
780 for (w = (Waiting_t*)dtfirst(x->waiting); w; w = (Waiting_t*)dtnext(x->waiting, w))
964 if (con->waiting)
965 dtclose(con->waiting);
993 if (--p->event->waiting == 0)