From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-07-01 05:46:26
From: "Joachim Achtzehnter" <joachim_at_[hidden]>
> > Different instances can be accessed from multiple threads, even when
> > are copies and share a count.
> I see, mutex protection has been added to shared_ptr since I last looked.
> This decision surprises me. This means every user of shared_ptr is now
> burdened with this overhead?
Yes, every user of shared_ptr that has BOOST_HAS_THREADS defined is burdened
with the overhead of having a shared_ptr that works. :-) shared_ptr follows
the standard library practice here; every user is burdened with a
synchronized heap allocator, too.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk