V1:
https://listman.redhat.com/archives/libvir-list/2021-August/msg00823.html
V2:
https://listman.redhat.com/archives/libvir-list/2021-September/msg00249.html
Changes since V2:
* Dropped VIR_XPATH_NODE_AUTORESTORE simplification. Moved to a
separate series.
* Dropped the attempt to work around g_auto* / clang unused variable
warnings (See
https://bugs.llvm.org/show_bug.cgi?id=3888,
https://bugs.llvm.org/show_bug.cgi?id=43482, and
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2272).
Instead, introduce VIR_LOCK_GUARD macro that adds G_GNUC_UNUSED.
Regards,
Tim
Tim Wiederhake (9):
internal: Add CONCAT macro
virthread: Introduce virLockGuard
virthread: Introduce VIR_WITH_MUTEX_LOCK_GUARD
virobject: Introduce virObjectLockGuard
virobject: Introduce VIR_WITH_OBJECT_LOCK_GUARD
virChrdevFDStreamCloseCb: Use virLockGuardNew
virChrdevFree: Use VIR_WITH_MUTEX_LOCK
bhyveAutostartDomain: Use virObjectLockGuard
lxcDomainDetachDeviceHostdevUSBLive: Use VIR_WITH_OBJECT_LOCK_GUARD
src/bhyve/bhyve_driver.c | 4 ++--
src/conf/virchrdev.c | 12 +++++-------
src/internal.h | 3 +++
src/libvirt_private.syms | 4 ++++
src/lxc/lxc_driver.c | 6 +++---
src/util/virobject.c | 16 ++++++++++++++++
src/util/virobject.h | 24 ++++++++++++++++++++++++
src/util/virthread.c | 26 ++++++++++++++++++++++++++
src/util/virthread.h | 31 +++++++++++++++++++++++++++++++
9 files changed, 114 insertions(+), 12 deletions(-)
--
2.31.1