Thread safety and string
Jonathan H Lundquist
jhlATsssonline.com
Mon Sep 13 13:44:00 GMT 1999
Title: Thread safety and string
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?
More information about the Libstdc++
mailing list