summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/OpenCL
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2013-09-04 03:10:09 -0400
committercomex <comexk@gmail.com>2013-09-04 03:24:00 -0400
commit906de748bd00a09486d2a16b337751c55ebac8f9 (patch)
treebfd8697cf43f1dd7904bcee1ddafb0f571fdf87f /Source/Core/VideoCommon/Src/OpenCL
parent0e949afa57c6a7e4532d4d160bd4289decf96e8c (diff)
Refactor thread handling to fix OS X bug.
On OS X, openL2CAPChannelSync registers events on the current thread's run loop, so Connect needs to be called on a thread that's going to do CFRunLoopRun; this was causing all Wiimote input to be ignored. Easiest way to do that is to use the Wiimote thread, and have Read call CFRunLoopRun to block on events, bringing OS X's Wiimote event loop in line with every other platform's. This also means that the thread can't be stopped and recreated by Prepare, so make Prepare notify it instead, which has the side effect of not making the GUI block on Prepare. (It would be nice if the GUI also did not block on searching for devices, because blocking the GUI is gross, but for now...)
Diffstat (limited to 'Source/Core/VideoCommon/Src/OpenCL')
0 files changed, 0 insertions, 0 deletions