in reply to Re^2: Boolean Thread::Semaphore ?
in thread Boolean Thread::Semaphore ?
The best way (aka not polling) would be that the worker thread will stop itself if the queue is full, and will be restarted by a client thread by a signal.
take a look at thread signalling chapter in threads documentation
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Boolean Thread::Semaphore ?
by BrowserUk (Patriarch) on Feb 08, 2012 at 19:00 UTC |