This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
STL safe for use in multi-threaded programs?
- To: gcc at gcc dot gnu dot org
- Subject: STL safe for use in multi-threaded programs?
- From: Adrian Miranda <ade at psg dot com>
- Date: Thu, 11 Nov 1999 13:32:03 -0800 (PST)
- Reply-To: Adrian Miranda <ade at psg dot com>
Are there any known problems with thread-safely in the STL? I was
using a couple of the following:
map<string, map<string, string> >
My multi-threaded program was suffering from irregular core dumps deep
within some STL memory allocation routines (it appeared). Once I
surrounded all use of the map with a mutex, the core dumps when away.
This is compiled with gcc 2.95.1, on Solaris 2.6 sparc.
Is this a known problem, or should I try to track it down further?
Adrian