[zeromq-dev] Problems with errno on Win32

Martin Sustrik sustrik at 250bpm.com
Thu Feb 18 13:36:04 CET 2010

Hi Brian,

Regarding the discussion we had yesterday about thread-safeness of errno 
on Win32: I've did a check today and it seems that address of errno is 
different for each thread - as it should be. I've run the test on WinXP. 
How does it look like on your system?

To check it, just open thread.cpp and following piece of code on line 53:

printf ("%p\n", (void*) &errno);

Then run any 0MQ test with multiple I/O threads. Each I/O thread will 
print out the address of it's errno. Are they all the same?


More information about the zeromq-dev mailing list