Re: Thread model: single

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marcos_David.Dione@xxxxxxxxxxxxxxx writes:

>     more particularly I want to know whether the "single" threaded gcc
> configuration implies that C code is also less thread-safe, e.g.
> because C header files are also sensitive to it.

It depends.  On some systems, the -pthread option to gcc will #define
the preprocessor symbol _REENTRANT.  It may be the case that on some
systems the header files will notice that and change behaviour.  I
don't think that is common.

The -pthread option does not affect gcc's code generation.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux