diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2014-06-05 02:04:11 -0700 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2014-08-27 02:41:42 -0700 |
commit | 8c60a6716d7ff3bb4a9e13a9b89ee5622e4fde7f (patch) | |
tree | ff91419941d0bf2b1feadace23398c95bcac18ad /libusb/version_nano.h | |
parent | b65dd04a3df1cd7451f0b32f28be3de046ffc62f (diff) | |
download | libusb-8c60a6716d7ff3bb4a9e13a9b89ee5622e4fde7f.tar.gz |
core: Reuse poll fds across calls to handle_events()
Prior to this patch, the array of poll fds given to poll() was
allocated and freed every time handle_events() was called. This
is unnecessary if the list of poll fds has not changed since the
last call to handle_events(). With this patch, the array and count
of poll fds is stored in the context and only reallocated when the
list of poll fds changes, saving any unnecessary overhead.
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/version_nano.h')
-rw-r--r-- | libusb/version_nano.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 42fac54..ada73a8 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10905 +#define LIBUSB_NANO 10911 |