core: Make event_data_lock non-recursive
authorChris Dickens <christopher.a.dickens@gmail.com>
Tue, 6 Jan 2015 18:59:01 +0000 (10:59 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Tue, 6 Jan 2015 18:59:01 +0000 (10:59 -0800)
commit5e8928b8ca40b1dd33956c807a9bf745b7999852
tree0add6b1789a732ac2c85009549d5c7bf092773b4
parent542fd04e021ce8a268c88b5e93ce191569fdc9eb
core: Make event_data_lock non-recursive

Hans pointed out that usbi_fd_notification() is only used by the
functions that add/remove pollfds. They already hold the required
lock, so to make it less expensive we will assume the lock is
already held.

The usbi_fd_notification() function has also been moved from core.c
into io.c and made static, since it now only has one use case.

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