]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r338993:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Oct 2018 07:50:44 +0000 (07:50 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Oct 2018 07:50:44 +0000 (07:50 +0000)
commit36dff4eec10b6c7dbe82a6f81dce49606c3c3244
treeaaa3a17c92e2eccfa6d1fa1d0b6a39f0868a15c0
parentb498ee1be6137276ce33ffe209253cf95ae55d7a
MFC r338993:
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
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@339190 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libusb/libusb10_io.c