]> git.proxmox.com Git - mirror_qemu.git/commit - util/thread-pool.c
lockable: replaced locks with lock guard macros where appropriate
authorDaniel Brodsky <dnbrdsky@gmail.com>
Sat, 4 Apr 2020 04:21:08 +0000 (21:21 -0700)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 4 May 2020 15:07:43 +0000 (16:07 +0100)
commit6e8a355de6c4d32e9df336cdafb009cd78262836
treedc839bbdbdfab8c588445a8b9d9283e0dda18d39
parent56f21718b8767a1b523f2a14107d6307336ca51d
lockable: replaced locks with lock guard macros where appropriate

- ran regexp "qemu_mutex_lock\(.*\).*\n.*if" to find targets
- replaced result with QEMU_LOCK_GUARD if all unlocks at function end
- replaced result with WITH_QEMU_LOCK_GUARD if unlock not at end

Signed-off-by: Daniel Brodsky <dnbrdsky@gmail.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-id: 20200404042108.389635-3-dnbrdsky@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
15 files changed:
block/iscsi.c
block/nfs.c
cpus-common.c
hw/display/qxl.c
hw/vfio/platform.c
migration/migration.c
migration/multifd.c
migration/ram.c
monitor/misc.c
ui/spice-display.c
util/log.c
util/qemu-timer.c
util/rcu.c
util/thread-pool.c
util/vfio-helpers.c