Remove the TAP-Win32 reader thread.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 28 Jun 2014 17:39:00 +0000 (18:39 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 28 Jun 2014 19:00:05 +0000 (20:00 +0100)
tinc is using a separate thread to read from the TAP device on Windows.
The rationale was that the notification mechanism for packets arriving
on the virtual network device is based on Win32 events, and the event
loop did not support listening to these events.

Thanks to recent improvements, this event loop limitation has been
lifted. Therefore we can get rid of the separate thread and simply add
the Win32 "incoming packet" event to the event loop, just like a socket.
The result is cleaner code that's easier to reason about.


No differences found