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]
Other format: [Raw text]

std::string & multithreading


Hi,

Currently std::string cannot be safely used in a multithreaded environment due to features like copy on write and reference counting. Even programs that access two unrelated different string objects in a multicore machine may suffer random crashes. 

Rogue Wave for example has a compiler option which allows linking with a version of the STL library that can be safely used in a multithreaded application.  Is there any such option available for gcc? If not are there plans to introduce one? 

Thank you,
Radu


      


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