usbi_handle_transfer_completion: Remove signal to event waiters
authorChris Dickens <christopher.a.dickens@gmail.com>
Tue, 26 Aug 2014 06:26:51 +0000 (23:26 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Wed, 27 Aug 2014 08:49:03 +0000 (01:49 -0700)
commita3a4806d494b8ff3dd213d5eb408b657bcdd47f0
tree9f4edf4e082d6a1fa187fe05eef48c950eddbd38
parente11525c66c7dd2db466c8f5785ff0b37d6a99ec9
usbi_handle_transfer_completion: Remove signal to event waiters

usbi_handle_transfer_completion() is only called by backends when
handling transfer completion. The backend can only make this call
whilst holding the events lock, therefore it is pointless to send
this signal. Any threads waiting to be signaled will be woken up
and will either find that an event handler is still active or will
try to obtain the events lock and be blocked.

Event waiters are automatically signaled in libusb_unlock_events(),
so when the backend is done handling events it will release the lock
and wake up any waiters. At this point the events lock wll be free,
which is the only time waking up waiters makes sense.

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