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.ben...@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.hender...@linaro.org>
r~