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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to