Boost logo

Boost Users :

From: bill_kempf (williamkempf_at_[hidden])
Date: 2002-04-02 14:02:57


--- In Boost-Users_at_y..., "Dale Peakall" <dale.peakall_at_b...> wrote:
> 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


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