Boost logo

Boost :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2006-08-31 08:30:59


On 8/31/06, John Maddock <john_at_[hidden]> wrote:

> In any case all the implementations I'm aware of are minimally thread safe
> these days, if that's not the case I'd certainly like to hear about it. BTW
> implementations that used copy-on-write in the early days almost all (all?)
> switched away from that precisely because of threading issues.

Even the latest libstdc++ (GNU's Standard C++ library) uses a
refcounted std::string.

One needs to be careful when sharing strings across thread boundaries.
 See these bug reports for a detailed discussion:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10350
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21334

-- 
Caleb Epstein

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