4 Nov
2005
4 Nov
'05
6:17 p.m.
Ok, I see now in scoped_lock the following: operator const void*() const { return m_locked ? this : 0; } So, in wait() where they check "if( !lock) {...}", they're actually checking to see if the lock has locked the mutex. However, for the reasons I mentioned in my earlier post, this still seems perilous. Can someone explain? Thanks, Adam