Thread safety and string

Putney, Jeff jputneyATnetworkmanagementinc.com
Mon Sep 13 15:41:00 GMT 1999


Is there any reason not to use the pthread mutex interface as a reference
implementation?  The operations that need to be atomic are localized and
finite, if I recall previous discussions accurately, so doing platform
specific implementations to improve performance would be relatively straight
forward.

--jeff

-----Original Message-----
From: Benjamin Kosnik [ mailto:bkoz@cygnus.com ]
Sent: Monday, September 13, 1999 4:51 PM
To: libstdc++@sourceware.cygnus.com
Subject: Re: Thread safety and string


> The v3 basic_string is designed to be easy to make thread-safe, given
> locking primitives.  AFAIK those have not been contributed yet.  (They
> would be different for each target architecture.)

Hmm. Very interesting. Thanks Nathan.

I volunteer to do all the autoconf/automake hackery to get this working,
if somebody will donate a reference implementation for x86-linux based on
current CVS sources. 

-benjamin


More information about the Libstdc++ mailing list