From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2006-11-01 12:56:57
"Peter Dimov" <pdimov_at_[hidden]> writes:
> 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.
OK, now I see where Roland is coming from, as his POD mutex does just
-- Anthony Williams Software Developer Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk