
20 Apr
2005
20 Apr
'05
11:17 p.m.
On 4/20/05, Tom Tan (SH/RDC) <tom.tan@ericsson.com> wrote:
Yes, to enable multi-threaded code. But how? What's going on inside while compiling with '-pthread'? Or what's the difference between them at the compilation level? Or Is there anything happen at optimization level?
Preprocessor macros are defined (e.g. _REENTRANT), and reentrant/thread-safe APIs are exposed that might not be otherwise. And you'll automatically link with the -lpthreads library. I don't believe anything will change w/r/t code optimizations, etc, just build/runtime support. -- Caleb Epstein caleb dot epstein at gmail dot com