This is the mail archive of the libstdc++@gcc.gnu.org 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]

libstdc was not safe in 2.92, is it now in 3.X?


The FAQ points the the 11th release as the current release (or 2.92) and says it is not thread safe based on the following definition:

The SGI implementation of STL is thread-safe only in the sense that simultaneous accesses to distinct containers are safe, and simultaneous
read accesses to to shared containers are safe. If multiple threads access a single container, and at least one thread may potentially write, then
the user is responsible for ensuring mutual exclusion between the threads during the container accesses.

If I am not mistaken, 3.X is now the current release.  (2000-11-12 it was made the default C++ library, but a few months later the 11th snapshot was taken.)

3.X is also the only one in /pub/gcc/libstdc++ and the links to download in the FAQ are currently broken.

However string is specifically mentioned as thread safe in the FAQ for 2.92.

Is the rest of the library thread safe now in 3.X or does the current FAQ hold that it "is not appropriate for multithreaded access"?  (Based on the SGI definition)

Everything I read points to NO IT IS NOT THREAD SAFE.  I am just looking for final confirmation.

Thanks!

P.S.  I read the whole FAQ this time, last time I got lost down in:
http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/howto.html#3
--
Andrew Lundgren
Andrew.Lundgren@level3.com


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