From 7558d1ed7b86dbd23504f743d27973556ed68dff Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Mon, 7 Dec 2015 18:51:33 +1100 Subject: win32: input: use Vista CancelIoEx libwaio was added due to the complete inability to cancel synchronous I/O cleanly using the public Windows API in Windows XP. Even calling TerminateThread on the thread performing I/O was a bad solution, because the TerminateThread function in XP would leak the thread's stack. In Vista and up, however, this is no longer a problem. CancelIoEx can cancel synchronous I/O running on other threads, allowing the thread to exit cleanly, so replace libwaio usage with native Vista API functions. It should be noted that this change also removes the hack added in 8a27025 for preventing a deadlock that only seemed to happen in Windows XP. KB2009703 says that Vista and up are not affected by this, due to a change in the implementation of GetFileType, so the hack should not be needed anymore. --- wscript | 6 ------ 1 file changed, 6 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 9d09170fac..00a67009a8 100644 --- a/wscript +++ b/wscript @@ -198,12 +198,6 @@ iconv support use --disable-iconv.", 'desc': 'w32/dos paths', 'deps_any': [ 'os-win32', 'os-cygwin' ], 'func': check_true - }, { - 'name': '--waio', - 'desc': 'libwaio for win32', - 'deps': [ 'os-win32', 'mingw' ], - 'func': check_libs(['waio'], - check_statement('waio/waio.h', 'waio_alloc(0, 0, 0, 0)')), }, { 'name': '--termios', 'desc': 'termios', -- cgit v1.2.3