This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Fw: [patch] Make std::tr1::shared_ptr thread-safe.
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Robert Zeh <rzeh at efs-us dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 01 Apr 2005 17:38:58 +0200
- Subject: Re: Fw: [patch] Make std::tr1::shared_ptr thread-safe.
- References: <OF24DE43AB.98214558-ONC1256FD5.0044D61E-C1256FD5.0044BD18@de.ibm.com> <e52efbe105033105212ee0988a@mail.gmail.com> <424D5134.3090108@suse.de> <424D69C0.6040206@efs-us.com>
Robert Zeh wrote:
> As a user who reads the mailing list and has experience with
> multi-threaded applications,
> my plea is for the first version of libstdc++'s tr1::shared_ptr to use
> a mutex.
FWIW my opinion (again, I'm not a MT expert, even less a lock-free
expert) I agree completely with you. Unfortunately, as Peter and
Alexander are teaching us, even in that case, there are quite a few
subtle issues...
Paolo.