This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ and pthreads
- From: Christoph Ludwig <cludwig at cdc dot informatik dot tu-darmstadt dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 25 Jul 2002 10:46:42 +0200
- Subject: g++ and pthreads
Hi,
I am looking for information what compiler support I can rely on if I
use Pthreads in a C++ program. For example, does the compiler ensure
their is no race condition with respect to the initialization of
local objects with static storage duration?
David Edelsohn wrote in
http://gcc.gnu.org/ml/gcc-help/2002-03/msg00220.html:
> The -pthread commandline option changes the behavior of
> system header files, links the application with GCC libraries builts
> for Posix threads, and links with Posix thread support in system
> libraries.
But does it also change the generated code?
(In case it is important: I have several versions of g++ 2.95.2
through 3.1 installed on Linux / i386 as well as Solaris 8 /
UltraSparc machines.)
Regards
Christoph Ludwig
--
http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/cludwig.html
LiDIA-CA: http://www.informatik.tu-darmstadt.de/TI/Forschung/LiDIA-CA/