[PATCH]: Thread safe stdio update
Thomas Pfaff
tpfaff@gmx.net
Mon Jan 19 21:01:00 GMT 2004
This is an update of my previous patch. It will add support for thread
safe stdio by adding 3 new header files in include/sys which supersedes
newlib headers.
One of these (_types.h) is just a copy of newlibs _types.h with a
modified _lock_t. It is not strictly necessary since sizeof(int) ==
sizeof(void*).
2004-01-19 Thomas Pfaff <tpfaff@gmx.net>
* include/sys/_types.h: New file.
* include/sys/lock.h: Ditto.
* include/sys/stdio.h: Ditto.
* thread.cc: Include sys/lock.h
(__cygwin_lock_init_recursive): New function.
(__cygwin_lock_fini_recursive): Ditto.
(__cygwin_lock_lock_recursive): Ditto.
(__cygwin_lock_unlock_recursive): Ditto.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20040119/5d8b35e3/attachment.ksh>
More information about the Cygwin-patches
mailing list