|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-07-22 11:56:46
Alexander Terekhov wrote:
> Peter Dimov wrote:
>
>> We are discussing the
>>
>> scoped_lock l1(m);
>> l1.lock();
>>
>> case. Since l1 is required to know whether it's been locked or not
>> (it has a public locked() query) it can easily check.
>
> What for? http://www.terekhov.de/DESIGN-futex-CV.cpp (see
> mutex::guard and mutex::release_guard). I guess that I'm just
> missing and/or misunderstanding something... oder?
You aren't missing anything, Boost.Threads is (probably) missing
scoped_unlock (release_guard). :-) I haven't checked the thread_dev branch
recently, scoped_unlock may already be there.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk