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
In reply to Re^3: Boolean Thread::Semaphore ?
by mellon85
in thread Boolean Thread::Semaphore ?
by chrestomanci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |