summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/FileSystemGCWii.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2019-05-04 12:23:57 +0200
committerLéo Lam <leo@innovatetechnologi.es>2019-05-21 19:07:30 +0200
commit2b44e1b851175f986ae8f7d51457a4d23fc609d1 (patch)
tree432c754f17cf4ad84a3a80c199aabf2b03ad8e30 /Source/Core/DiscIO/FileSystemGCWii.cpp
parentb274a054a919b5edbe8ca2d8391023e2b99ac0c4 (diff)
IOS/USB: Fix initial device scan
Even though libusb is supposed to be thread-safe, in practice it's not (at least on Windows); getting a list of devices from two different threads can result in libusb crashes. This is easily fixed by waiting for the scan thread to complete scanning instead of running the scan on the CPU thread. This also fixes an issue that I had overlooked in the initial implementation: IOS interfaces such as OH0 are sometimes opened every frame, in which case we were doing a full device scan every single frame on the CPU thread!
Diffstat (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp')
0 files changed, 0 insertions, 0 deletions