Am 02.11.2003 um 13:45 schrieb Tomasz Kojm:


I agree. The most annoying thing for me is that cannot find any
official statement clarifying errno usage in multithreaded environments.

Let me quote a little from [1]:


1.9.3 Checking for errors

"Pthreads introduces a new way to report errors, without using the errno variable.
...
Pthreads also provides a per-thread errno, which supports other code that uses errno. This means that when one thread calls some function that reports an error using errno, the value cannot be overwritten, or read, by any other thread - you may go on using errno just as you always have."


I recommend you get (and read...) [1].

- Marc


[1] Butenhof, David R., Programming with POSIX Threads




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel

Reply via email to