]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When multiple threads are involved receiving completion events in LibUSB
authorhselasky <hselasky@FreeBSD.org>
Fri, 28 Sep 2018 10:28:22 +0000 (10:28 +0000)
committerhselasky <hselasky@FreeBSD.org>
Fri, 28 Sep 2018 10:28:22 +0000 (10:28 +0000)
commit50e246b1c7980fe9c521a1a005ef5e2412f407c8
treefd9475144f75bf912bc055238d32414775065c3e
parent53634ed3beec18a276da423e9aa25bc59786a58a
When multiple threads are involved receiving completion events in LibUSB
make sure there is always a master polling thread, by setting the "ctx_handler"
field in the context. Else the reception of completion events can stop.
This happens if event threads are created and destroyed during runtime.

Found by: Ludovic Rousseau <ludovic.rousseau+freebsd@gmail.com>
PR: 231742
MFC after: 1 week
Approved by: re (kib)
Sponsored by: Mellanox Technologies
lib/libusb/libusb10_io.c