|
Boost Users : |
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-04-07 10:57:17
Markus Schöpflin wrote:
> Rene Rivera wrote:
>
>> Read the above carefully... It doesn't say there aren't lock/unlock
>> calls. Only that mutexes don't provide them. You are free to shoot
>> yourself by manually locking and unlocking "Locks". Which will
>> lock/unlock the associated mutex.
>
>
> But there is no class which models the Lock concept, or is there?
There is..
http://www.boost.org/doc/html/threads/concepts.html#threads.concepts.Mutex
In that section you'll see that there's a M::scoped_lock type that
implements the ScopedLock concept. And if you continue reading you can
see that each mutex variant has such a type to correspond to the type of
Lock concept they support.
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net