in reply to Boolean Thread::Semaphore ?
Why not use a Thread::Queue to distribute the work to your worker threads? The workers will block when the queue is empty and get woken up when there is work to be done.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Boolean Thread::Semaphore ?
by chrestomanci (Priest) on Feb 08, 2012 at 12:12 UTC |