|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-11-01 12:45:08
Anthony Williams wrote:
> Roland Schwarz <roland.schwarz_at_[hidden]> writes:
>
>> Yes I understand, but this framework forces the mutex object to
>> contain state.
>
> I don't understand where this assertion is coming from.
It's an interesting point. A mutex can keep track of its scoped_lock objects
in a list in order to implement locking/unlocking. This makes a direct
lock/unlock interface hard to implement since there are no scoped_lock
objects to put on the list.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk