This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: refcounting basic_string<> and thread safety
>>>>> Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de>:
> On 22 Jun 1999, Steinar Bang wrote:
>> I'm guessing that the current refcounting <string> with gcc/egcs
>> library isn't thread safe?
>>
>> Will the new basic_string<> delivered with libstdc++-v3 be thread
>> safe?
> Is it possible to have an efficient, thread save, refcounted string at all?
The article I referred to seemed to think so, but it relied on atomic
integer operations being available in the system the code was
executing on.
And the problem with this was mentioned in one of the messages to the
mailing list:
These operations may not be available on all systems, and if they
are, may have different interfaces.