$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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
> semas.
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).
Regards,
Stefan