
1 Nov
2006
1 Nov
'06
5:45 p.m.
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.