Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-03-05 14:32:33


Manuel Jung wrote:
> Hi,
>
> I would like to know the waiting threads for a condition. Is there a
> way to calculate the number of "wait()"s which would be affected by a
> notifiy_all()?

No. Another thread can issue a notify_one concurrently with your request.
You need to encapsulate the condition variable and keep track of the count
yourself.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net