Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2007-11-15 14:38:39


On Nov 15, 2007, at 1:56 PM, Alexander Terekhov wrote:

>> inline
>> void
>> condition_variable_any::notify_one()
>> {
>> lock_guard<mutex> _(*mut_);
>> cv_.notify_one();
>> }
>
> No need to hold the lock while signaling. I'd add {}.

<nod> thanks.

-Howard


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