Boost logo

Boost :

From: Terence Wilson (tez_at_[hidden])
Date: 2002-06-28 21:34:49


>>Different instances can be accessed from multiple threads, even when
they are copies and share a count.

Thanks for confirming this. I guess the bug I am seeing lays elsewhere.

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of Peter Dimov
Sent: Friday, June 28, 2002 10:41 AM
To: boost_at_[hidden]
Subject: Re: [boost] shared_ptr and thread safety

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.

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


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