winks: work around shutdown deadlock
authorOle André Vadla Ravnås <oravnas@cisco.com>
Thu, 1 Jul 2010 13:07:41 +0000 (15:07 +0200)
committerOle André Vadla Ravnås <oravnas@cisco.com>
Thu, 28 Oct 2010 15:08:41 +0000 (17:08 +0200)
commitcc1c6ee9e3bdc4c2eb5fc73f85e00c6b15afc1a5
treeaa2b9c4db2ec3e364ef97fd9e354d26000a48ba0
parenta7a04fe601b2d9010bdb1b3beae1ed3ae3567748
winks: work around shutdown deadlock

GetOverlappedResult() might never return with some drivers. Time out
after 1000 ms. We cannot really fix this without either:
1) Controlling the streaming thread so we can do CancelIo() from that
   thread.
2) Switch to using IO completion ports.
sys/winks/gstksvideodevice.c