|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-06-28 12:40:31
From: "Terence Wilson" <tez_at_[hidden]>
> Mmm. I understand that the actual object pointed to must be made thread
> safe, however, can I assume that shared_ptr is thread safe? i.e. it will
> correctly maintain use counters while being accessed from multiple
> threads?
A single instance of shared_ptr must not be accessed from multiple threads
without synchronization (unless all accesses are read accesses.)
Different instances can be accessed from multiple threads, even when they
are copies and share a count.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk