On 3/17/22 16:50, Tim Wiederhake wrote:
Use the recently implemented VIR_LOCK_GUARD and
VIR_WITH_MUTEX_LOCK_GUARD
to simplify mutex management.
V1:
https://listman.redhat.com/archives/libvir-list/2022-March/229144.html
V2:
https://listman.redhat.com/archives/libvir-list/2022-March/229329.html
Changes since V2:
* Rewrote virQEMUDriverGetCapabilities, thanks Michal!
* Added VIR_WITH_MUTEX_LOCK_GUARD to nwfilterConnectNumOfNWFilters
* Other patches were reviewed and pushed.
Tim Wiederhake (2):
nwfilter_driver: Use automatic mutex management
qemu_conf: Use automatic memory management
src/nwfilter/nwfilter_driver.c | 94 +++++++++++++++-------------------
src/qemu/qemu_conf.c | 63 ++++++++---------------
2 files changed, 61 insertions(+), 96 deletions(-)
Reviewed-by: Michal Privoznik <mprivozn(a)redhat.com>
Michal