qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ui/cocoa: updateUIInfo threading, autorelease pools
@ 2022-02-24 10:13 Peter Maydell
  2022-02-24 10:13 ` [PATCH v2 1/2] ui/cocoa.m: Fix updateUIInfo threading issues Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Maydell @ 2022-02-24 10:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann, Akihiko Odaki

This patchset was originally provoked by Akihiko Odaki noting
that we have some unnecessary creation and deletion of autorelease
pools in the Cocoa UI code. Patch 2 deletes them; but to get there
we need to do a bit of cleanup of the updateUIInfo support,
which wasn't considering threads.

Tested only very lightly.

v1->v2 changes:
 * name method updateUIInfoLocked, to match existing handleEventLocked
 * don't call updateUIInfo in cocoa_display_init() -- this happens
   indirectly as a result of register_displaychangelistener()

thanks
-- PMM

Peter Maydell (2):
  ui/cocoa.m: Fix updateUIInfo threading issues
  ui/cocoa.m: Remove unnecessary NSAutoreleasePools

 ui/cocoa.m | 31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2022-02-24 11:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-24 10:13 [PATCH v2 0/2] ui/cocoa: updateUIInfo threading, autorelease pools Peter Maydell
2022-02-24 10:13 ` [PATCH v2 1/2] ui/cocoa.m: Fix updateUIInfo threading issues Peter Maydell
2022-02-24 10:13 ` [PATCH v2 2/2] ui/cocoa.m: Remove unnecessary NSAutoreleasePools Peter Maydell
2022-02-24 11:46 ` [PATCH v2 0/2] ui/cocoa: updateUIInfo threading, autorelease pools Akihiko Odaki

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).