AW: [concurrency-interest] Use of blocked queues
matthias.ernst at coremedia.com
Mon May 30 08:41:26 EDT 2005
> In my particular usage, when adding to the queue, I want to
> check if there are any readers which are blocked, waiting for
> something to arrive on the queue. This is so that, if no
> readers are waiting, I fire off an event.
> I want to avoid reinventing the wheel
> if necessary!
Just wondering: are you maybe reinventing a thread pool? If fireEvent()
causes a new reader to be created
that sounds a lot like it.
More information about the Concurrency-interest