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]

-pthread option


Add support for multithreading using the POSIX threads library.  This
option sets flags for both the preprocessor and linker.  It does not
affect the thread safety of object code produced by the compiler or
that of libraries supplied with it.
--------------------------------------------------------------
What is the meaning of thread safety? I wonder if anybody knows what
flags are set and please write a simple example of a multi-thread
code.


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