--- In Boost-Users@y..., "Dale Peakall"
I believe it is possible to use Boost.Threads mutexes without the need to use a scoped_lock style guard.
Not in any supported manner.
I vaguely recall it being something to do with a mutex_traits class or something (but I can't find any documentation).
The mutex_traits concept is something that was discussed on the list, but nothing like this is currently in the official Boost.Threads library. If you don't mind using undocumented features until an official solution is available you might want to look at $BOOST_ROOT/boost/thread/detail/lock.hpp. Just be aware that if/when we do add a supported way to do this the lock_ops template will likely be removed and your code will break. Bill Kempf