]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r338993:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Oct 2018 07:52:28 +0000 (07:52 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Oct 2018 07:52:28 +0000 (07:52 +0000)
commit1d642e95697b017ce4018e6cf3fd141791e01809
tree33f506a4806e36266ccd6346aaaa0b8b288fed69
parent3f041ca92aef2d065c1decd3a4a6165c683bf69d
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/9@339191 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libusb/libusb10_io.c