From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2003-06-06 17:14:41
Alexander Terekhov wrote:
> Show me some code. I mean something that shows why do you need counting
I'm using a bounded task queue (with the producer/consumer pattern),
where the queue is implemented with std::queue, a mutex, and two semaphores.
One semaphore counts the available tasks, the other the available slots
for new tasks (as I said, the queue is bounded).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk