This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Thread safety and string


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]