[quoted lines by Siju Samuel on 2014/06/13 at 10:54 -0500]
>#ifdef _POSIX_THREAD_SAFE_FUNCTIONS
>#define lockStream(stream) flockfile((stream))
>#define unlockStream(stream) funlockfile((stream))
>#else /* _POSIX_THREAD_SAFE_FUNCTIONS */
>#define lockStream(stream)
>#define unlockStream(stream)
>#endif /* _POSIX_THREAD_SAFE_FUNCTIONS */
Yes, this is the interesting bit of code. Note what the documentation says:
AVAILABILITY
These functions are available when _POSIX_THREAD_SAFE_FUNCTIONS is
defined.
So our code is doing what the documenation says it should do. Interestingly,
this code seems to work on MiNGW when in log.c but not when in file.h (its new
location). That's why I'd like to look throgh MinGW's headers.
--
Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
EMail: [email protected] | Canada K2A 1H7 | http://FamilyRadio.com/
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty