qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Create menus in iothread
@ 2022-03-21  4:10 Akihiko Odaki
  2022-03-21  4:10 ` [PATCH v3 1/2] ui/cocoa: Move create_initial_menus Akihiko Odaki
  2022-03-21  4:10 ` [PATCH v3 2/2] ui/cocoa: Create menus in iothread Akihiko Odaki
  0 siblings, 2 replies; 5+ messages in thread
From: Akihiko Odaki @ 2022-03-21  4:10 UTC (permalink / raw)
  Cc: Peter Maydell, qemu-devel, Philippe Mathieu-Daudé,
	Gerd Hoffmann, Akihiko Odaki, Paolo Bonzini

Commit 0439c5a4623d674efa0c72abd62ca6e98bb7cf87 introduced an
assertion that blk_all_next is called in the main thread. The function
is called in the following chain:
- blk_all_next
- qmp_query_block
- addRemovableDevicesMenuItems
- main

This change moves the menu creation to the iothread. This also changes
the menu creation procedure to construct the entire menu tree before
setting to NSApp, which is necessary because a menu set once cannot be
modified if NSApp is already running.

v2: Separate a change moving create_initial_menus (Peter Maydell)

v3: Rebased to commit 2058fdbe81e2985c226a026851dd26b146d3395c

Akihiko Odaki (2):
  ui/cocoa: Move create_initial_menus
  ui/cocoa: Create menus in iothread

 ui/cocoa.m | 209 +++++++++++++++++++++++++----------------------------
 1 file changed, 98 insertions(+), 111 deletions(-)

-- 
2.32.0 (Apple Git-132)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-21 22:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-21  4:10 [PATCH v3 0/2] Create menus in iothread Akihiko Odaki
2022-03-21  4:10 ` [PATCH v3 1/2] ui/cocoa: Move create_initial_menus Akihiko Odaki
2022-03-21 21:59   ` Philippe Mathieu-Daudé
2022-03-21  4:10 ` [PATCH v3 2/2] ui/cocoa: Create menus in iothread Akihiko Odaki
2022-03-21 22:00   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).