public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* g++ and pthreads
@ 2002-07-25  1:46 Christoph Ludwig
  0 siblings, 0 replies; only message in thread
From: Christoph Ludwig @ 2002-07-25  1:46 UTC (permalink / raw)
  To: gcc-help

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-25  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-25  1:46 g++ and pthreads Christoph Ludwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).