]> git.proxmox.com Git - mirror_qemu.git/commit
monitor: Replaced qemu_mutex_lock calls with QEMU_LOCK_GUARD
authorMahmoud Mandour <ma.mandourr@gmail.com>
Thu, 11 Mar 2021 03:15:34 +0000 (05:15 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 15 Mar 2021 20:01:55 +0000 (20:01 +0000)
commita8e2ab5db2181b68f371ee794e1a0fe7ca6f5e24
tree806b209449a4392d0b33b3ff1b918a771b571567
parentfca676429ca7f309b5d492c7675d35fec484197c
monitor: Replaced qemu_mutex_lock calls with QEMU_LOCK_GUARD

Removed various qemu_mutex_lock and their respective qemu_mutex_unlock
calls and used lock guard macros (QEMU_LOCK_GUARD and
WITH_QEMU_LOCK_GUARD). This simplifies the code by
eliminating qemu_mutex_unlock calls.

Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Message-Id: <20210311031538.5325-6-ma.mandourr@gmail.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
monitor/monitor.c
monitor/qmp.c