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