On Fri, Apr 26, 2002 at 11:18:58AM -0700, Justin Erenkrantz wrote:
> How about using APR condition variables instead of yield()?  That was
> how I was imagining implementing this.  The listener would block
> until the queue is not full and then drop into the accept mutex
> rotation.  I seem to remember something like this being in the
> original worker code, but I don't recall.  -- justin

Yes, using cond vars is the correct way to do this. I committed the
LIFO->FIFO change this morning and added a counter to keep track of the
number of elements in the queue. That can be used in a new function
that blocks until the queue is non-full.

-aaron

Reply via email to