Boost logo

Boost :

From: Boris (boriss_at_[hidden])
Date: 2006-04-15 05:25:18


If you define BOOST_SP_DISABLE_THREADS class boost::detail::sp_counted_base
doesn't use a mutex (see
http://www.boost.org/libs/smart_ptr/shared_ptr.htm#ThreadSafety).
However boost::detail::quick_allocator still uses a mutex as it checks
BOOST_HAS_THREADS but not BOOST_SP_DISABLE_THREADS (see
http://www.boost.org/boost/detail/quick_allocator.hpp).
Is this intentional (as quick_allocator might be used by other classes)?

Boris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk