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. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost