Hi,
> NB: the code to asynchronously run code blocks on the
> main thread uses dispatch_get_main_queue(), which is a
> 10.10-or-later function. If we're going to go with this
> refactoring I think the benefit in clarity-of-code is a
> worthwhile gain for dropping support for ancient OSX versions
On 12/1/18 6:30 AM, Peter Maydell wrote:
> Patchset structure:
> * patch 1 does the "make sure we have the iothread lock for
>calls into QEMU" (which is effectively a no-op initially
>since we'll already be holding that lock when our refresh
>etc callbacks are called)
> * patch 2 make
This set of patches rearranges how we handle events on
the OSX Cocoa UI so that we use the main thread to run
the OSX event loop, and we don't do a long blocking
operation from the applicationDidFinishLaunching callback.
Instead we create a second thread which runs qemu_main()
and becomes the QEMU