This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Thread-safeness of C++ compilers and libraries
- To: egcs at cygnus dot com
- Subject: Thread-safeness of C++ compilers and libraries
- From: jsimon at sunchorus dot france dot sun dot com (Julien SIMON - APRIME)
- Date: Tue, 9 Jun 1998 19:02:56 +0200
Hi,
I have some questions regarding thread-safeness :
1) What does it take for a C++ compiler to be thread-safe ?
And what threads are we talking about anyway ? Probably POSIX threads,
but what about kernel threads ?
2) I understand that one of the main problems is the runtime, and especially
exception-handling. I'm familiar with exceptions, but the impact of
multithreading is still a bit fuzzy for me ;-)
3) Based on this, what should I expect from g++ and egcs ?
Is this a platform-dependent issue ?
4) Is libstdc++ thread-safe (again, what threads are we talking about ?) ?
According to some posts I've read, the STL part of the library is already
thread-safe. What about the rest ?
Lots of questions, but I'm sure I'm not the only one struggling with all this
mess :-) Hopefully someone can shed some light on these complex interactions.
Thank you for your time,
Julien