05-17-07 12:16 PM
On 14 May, 17:25, Paul Pluzhnikov <ppluzhnikov-...@charter.net> wrote:
> Yes, errno is thread-safe on all platforms that support POSIX
> threads, *provided* you compile your code correctly.
>
> How to do so depends on the platform. On Solaris, compile with
> -D_REENTRANT, on AIX with -D_THREAD_SAFE. On Linux, compile with
> '-pthread' (though Linux errno is thread-safe by default).
Why not -pthreads with gcc, and -mt with Sun compiler on Solaris?
[ Post a follow-up to this message ]
|