core: Signal the event pipe at most one time
authorChris Dickens <christopher.a.dickens@gmail.com>
Tue, 18 Nov 2014 07:53:14 +0000 (23:53 -0800)
committerChris Dickens <chris.dickens@hp.com>
Fri, 19 Dec 2014 19:22:03 +0000 (11:22 -0800)
commit89b5407b9aa74790a64b6f32a5b14a96242ba128
treeb8436bce0ad29d67e072e984cf0b80544c2173d1
parent3b371f1a6ab30bdebdadfcde1b96a9b98fb806ca
core: Signal the event pipe at most one time

This change will ensure that the event pipe is only signalled
at most one time during the course of any incoming events. New
events that occur while the event pipe is in the signalled state
will not cause the event pipe to be signalled again.

This change will provide support for the use of native events on
the Windows/WinCE backends, as these events are binary and do not
"count" the number of times they are signalled.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/core.c
libusb/hotplug.c
libusb/io.c
libusb/libusbi.h
libusb/version_nano.h