qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH] main-loop: introduce WITH_QEMU_IOTHREAD_LOCK


From: Richard Henderson
Subject: Re: [RFC PATCH] main-loop: introduce WITH_QEMU_IOTHREAD_LOCK
Date: Tue, 25 Oct 2022 09:01:30 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2

On 10/25/22 03:19, Alex Bennée wrote:
This helper intends to ape our other auto-unlocking helpers with
WITH_QEMU_LOCK_GUARD. The principle difference is the iothread lock
is often nested needs a little extra book keeping to ensure we don't
double lock or unlock a lock taken higher up the call chain.

Convert some of the common routines that follow this pattern to use
the new wrapper.

Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
---
  include/qemu/main-loop.h | 41 ++++++++++++++++++++++++++++++++++++++++
  hw/core/cpu-common.c     | 10 ++--------
  util/rcu.c               | 40 ++++++++++++++++-----------------------
  ui/cocoa.m               | 18 ++++--------------
  4 files changed, 63 insertions(+), 46 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]