This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
RE: Thread safety and string
- To: libstdc++ AT sourceware.cygnus dot com
- Subject: RE: Thread safety and string
- From: "Putney, Jeff" <jputney AT networkmanagementinc dot com>
- Date: Mon, 13 Sep 1999 17:38:29 -0500
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