Re: [libvirt PATCH v5 2/9] virthread: Introduce virLockGuard

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:10PM +0100, Tim Wiederhake wrote: > Locks a virMutex on creation and unlocks it in its destructor. > > The VIR_LOCK_GUARD macro is used instead of "g_auto(virLockGuard)" to > work around a clang issue (see https://bugs.llvm.org/show_bug.cgi?id=3888 > and https://bugs.

[libvirt PATCH v5 2/9] virthread: Introduce virLockGuard

2022-02-01 Thread Tim Wiederhake
Locks a virMutex on creation and unlocks it in its destructor. The VIR_LOCK_GUARD macro is used instead of "g_auto(virLockGuard)" to work around a clang issue (see https://bugs.llvm.org/show_bug.cgi?id=3888 and https://bugs.llvm.org/show_bug.cgi?id=43482). Typical usage: void function(virMut