Boost logo

Boost :

Subject: Re: [boost] [thread] countdown_latch
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-05-17 16:17:32


Le 17/05/13 22:15, Vicente J. Botet Escriba a écrit :
> Le 14/05/13 08:16, Gaetano Mendola a écrit :
>> On 14/05/2013 07.46, Vicente J. Botet Escriba wrote:
>>
>> Now it makes sense, unlocking prematurely an unique lock without the use
>> of an extra scope is something not natural, it is at least a weird
>> pattern, I believe the source of the "problem" is in the
>> implementation of that boost::detail::counter indeed as you can see
>> it has a counter
>> and a condition and users of it are obliged to protect both counter and
>> condition (even if not needed) look at inc_and_notify_all for example.
>>
> To which boost::detail::counter are you referring to?
>
Forget this question :(

Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk