commit | 7b5e31b8cb427cd95a307c607741cc52a39cb951 | [log] [tgz] |
---|---|---|
author | Chris Dickens <christopher.a.dickens@gmail.com> | Wed Aug 12 22:34:03 2020 -0700 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Wed Aug 12 22:34:03 2020 -0700 |
tree | e0b57deb1d8d527a1dfa705000d8a9a1121e208c | |
parent | b40a26f9012c3b4fb29b589b97c37e9a32a06a5d [diff] |
core: Optimize check for pending events Prior to this commit, a check for whether any events are pending involved checking four different variables within the context. Optimize this by using multiple bits within a single unsigned integer to represent all the possible events that could be pending. This reduces the check for whether any events are pending to a single load. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)