Boost logo

Boost Users :

From: Adam M (boost_at_[hidden])
Date: 2005-11-04 13:17:38


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net