OSDN Git Service

ui/cocoa: Ensure we have the iothread lock when calling into QEMU
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 25 Feb 2019 10:24:27 +0000 (10:24 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Mar 2019 16:47:21 +0000 (16:47 +0000)
commit31819e95095798382cdb5a0881f5f934a8f05476
tree85e5edb51bb91a93e0b7b836b5ff4cadaee36ba6
parent88687719c8859bf98ed94ce91612608c99c51c1a
ui/cocoa: Ensure we have the iothread lock when calling into QEMU

The Cocoa UI should run on the main thread; this is enforced
in OSX Mojave. In order to be able to run on the main thread,
we need to make sure we hold the iothread lock whenever we
call into various QEMU UI midlayer functions.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Tested-by: Roman Bolshakov <r.bolshakov@yadro.com>
Message-id: 20190225102433.22401-2-peter.maydell@linaro.org
Message-id: 20190214102816.3393-2-peter.maydell@linaro.org
ui/cocoa.m