summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-12-07 18:51:33 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2015-12-20 21:06:02 +1100
commit7558d1ed7b86dbd23504f743d27973556ed68dff (patch)
tree85021c91c3dc91d690636aa3230154b3300cf27d /wscript_build.py
parent0563eb914f2d4243c00bbd31175658e595dd3763 (diff)
downloadmpv-7558d1ed7b86dbd23504f743d27973556ed68dff.tar.bz2
mpv-7558d1ed7b86dbd23504f743d27973556ed68dff.tar.xz
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.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript_build.py b/wscript_build.py
index a6ec6795b5..46ff204b59 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -180,7 +180,7 @@ def build(ctx):
( "input/input.c" ),
( "input/ipc.c", "!mingw" ),
( "input/keycodes.c" ),
- ( "input/pipe-win32.c", "waio" ),
+ ( "input/pipe-win32.c", "mingw" ),
## Misc
( "misc/bstr.c" ),