This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

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/


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