summaryrefslogtreecommitdiff
path: root/libusb/version_nano.h
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2014-06-05 02:04:11 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2014-08-27 02:41:42 -0700
commit8c60a6716d7ff3bb4a9e13a9b89ee5622e4fde7f (patch)
treeff91419941d0bf2b1feadace23398c95bcac18ad /libusb/version_nano.h
parentb65dd04a3df1cd7451f0b32f28be3de046ffc62f (diff)
downloadlibusb-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.h2
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