Re: Is errno thread safe?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: Is errno thread safe?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Is errno thread safe?  
Maxim Yegorushkin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:58 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register