
1 Nov
2006
1 Nov
'06
5:56 p.m.
"Peter Dimov" <pdimov@mmltd.net> writes:
Anthony Williams wrote:
Roland Schwarz <roland.schwarz@chello.at> 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 that. Anthony -- Anthony Williams Software Developer Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk