aboutsummaryrefslogtreecommitdiff
path: root/capstone
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-11-27 17:11:04 +0000
committerPeter Maydell <peter.maydell@linaro.org>2018-11-29 12:49:01 +0000
commit67bbb88e5da5b99d69d236137b9e940c47a3ba5a (patch)
treef4394ba4627f34a410a0d5cb1ec5a516bf630c52 /capstone
parentfb2b1b8e89cded3e8bd4388dd3f61530f055abf1 (diff)
ui/cocoa: Perform UI operations only on the main thread
The OSX Mojave release is more picky about enforcing the Cocoa API restriction that only the main thread may perform UI calls. To accommodate this we need to restructure the Cocoa code: * the special OSX main() creates a second thread and uses that to call the vl.c qemu_main(); the original main thread goes into the OSX event loop * the refresh, switch and update callbacks asynchronously tell the main thread to do the necessary work * the refresh callback no longer does the "get events from the UI event queue and handle them" loop, since we now use the stock OSX event loop All these things have to be changed in one commit, to avoid breaking bisection. Note that since we use dispatch_get_main_queue(), this bumps our minimum version requirement to OSX 10.10 Yosemite (released in 2014, unsupported by Apple since 2017). Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'capstone')
0 files changed, 0 insertions, 0 deletions