This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
thread-safe strings
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: thread-safe strings
- From: brent at linux1 dot org
- Date: Wed, 15 Mar 2000 01:00:25 -0500
Hi,
I'll open my mouth and announce my ignorance... I'm relatively new
to c++, esp. STL, and I have a vague understanding of thread-safety,
but looking I'd like to try to help if I can.
I've looked over the code for basic_string a bit and see that there
is a problem with _M_state being accessed from multiple threads. Are
there other problems that I'm missing here? If not couldn't we just
put a mutex on _M_state?
Also, how can I verify that string is thread-safe after mucking
around with it? a test case?
Your patience is appreciated.
brent