summaryrefslogtreecommitdiff
path: root/libusb/os/linux_usbfs.c
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2014-08-25 23:26:51 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2014-08-27 01:49:03 -0700
commita3a4806d494b8ff3dd213d5eb408b657bcdd47f0 (patch)
tree9f4edf4e082d6a1fa187fe05eef48c950eddbd38 /libusb/os/linux_usbfs.c
parente11525c66c7dd2db466c8f5785ff0b37d6a99ec9 (diff)
downloadlibusb-a3a4806d494b8ff3dd213d5eb408b657bcdd47f0.tar.gz
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>
Diffstat (limited to 'libusb/os/linux_usbfs.c')
0 files changed, 0 insertions, 0 deletions