Make blocking socket calls on Windows interruptible
authorNiklas Therning <niklas@therning.org>
Wed, 28 Sep 2016 14:54:45 +0000 (16:54 +0200)
committerNiklas Therning <niklas@therning.org>
Fri, 7 Oct 2016 12:30:28 +0000 (14:30 +0200)
commit53af53ae5923ccb205ea8e0ebebdbe0c0ee5de88
tree00c187c5667ae5599bb9323122c6b4a2d2d89105
parentb612056c4ee2250066bc274f169a65e36005a484
Make blocking socket calls on Windows interruptible

This second commit adds functions to socket-io.c which uses
WSAEventSelect()/WSAWaitForMultipleEvents() or overlapped I/O to make
potentielly blocking socket calls interruptible (alertable).
mcs/class/System/System.Net.Sockets/Socket.cs
mcs/class/corlib/System/Environment.cs
mono/metadata/Makefile.am
mono/metadata/appdomain.c
mono/metadata/socket-io-windows-internals.h [new file with mode: 0644]
mono/metadata/socket-io-windows.c [new file with mode: 0644]
mono/metadata/socket-io.c
mono/utils/mono-threads-windows-abort-syscall.c
msvc/libmonoruntime.vcxproj
msvc/libmonoruntime.vcxproj.filters