[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH-for-7.0 v2] cocoa: run qemu_init in the main thread
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC PATCH-for-7.0 v2] cocoa: run qemu_init in the main thread |
Date: |
Thu, 17 Mar 2022 13:44:21 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 |
On 17/3/22 12:57, Paolo Bonzini wrote:
Just one change to aid future reading of the code, possibly. Move this
line:
On 3/16/22 17:03, Philippe Mathieu-Daudé wrote:
+ qemu_event_init(&cbevent, false);
just before
+ cbowner = [[QemuCocoaPasteboardTypeOwner alloc] init];
i.e. the place where it was before the patch, in cocoa_display_init.
OK. I'll also include this change
(s/cocoa_display_init/applicationDidFinishLaunching):
@@ -611,17 +611,17 @@
- (void) updateUIInfo
{
if (!allow_events) {
/*
* Don't try to tell QEMU about UI information in the application
* startup phase -- we haven't yet registered dcl with the QEMU UI
* layer, and also trying to take the iothread lock would
deadlock.
- * When cocoa_display_init() does register the dcl, the UI layer
- * will call cocoa_switch(), which will call updateUIInfo, so
- * we don't lose any information here.
+ * When applicationDidFinishLaunching() does register the dcl, the
+ * UI layer will call cocoa_switch(), which will call updateUIInfo,
+ * so we don't lose any information here.
*/
return;
}
Re: [RFC PATCH-for-7.0 v2] cocoa: run qemu_init in the main thread, Akihiko Odaki, 2022/03/16
Re: [RFC PATCH-for-7.0 v2] cocoa: run qemu_init in the main thread, Paolo Bonzini, 2022/03/17
- Re: [RFC PATCH-for-7.0 v2] cocoa: run qemu_init in the main thread,
Philippe Mathieu-Daudé <=