Winsock: Use Per-Thread Buffers Instead of Per-Process Buffers

Robert Shearman rob at
Tue Nov 23 13:46:17 CST 2004


According to MSDN, gethostbyname, getservbyname, etc. should all return 
a buffer that is allocated once per thread. This patch does this and 
consequently makes the functions thread-safe.


Convert per-process hostent, servent and protent buffers into per-thread 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winsock_perthreadbuffers.diff
Type: text/x-patch
Size: 5722 bytes
Desc: not available
Url :

More information about the wine-patches mailing list