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

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


Hi,

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.

Rob

Changelog:
Convert per-process hostent, servent and protent buffers into per-thread 
buffers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winsock_perthreadbuffers.diff
Type: text/x-patch
Size: 5722 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041123/a23b84d2/winsock_perthreadbuffers.bin


More information about the wine-patches mailing list