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] |
As far as I can tell, the string implementation in libstd++ is *not* thread safe. The documentation includes the following:
"While parts of the SGI STL are used in libstdc++-v3, their string class is not. The SGI string is essentially vector<char> and does not do any reference counting like libstdc++-v3's does. (It is O(n), though.) Contrary to what some say, reference counting is not incompatable with multithreading, if done correctly"
Is it currently thought to be threadsafe?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |