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

2021-10-05 Thread Jonathon Jongsma
On Thu, Sep 30, 2021 at 6:29 AM Tim Wiederhake wrote: > > Locks a virMutex on creation and unlocks it in its destructor. > > The VIR_LOCK_GUARD macro is used instead of "g_autoptr(virLockGuard)" to > work around a clang issue (see https://bugs.llvm.org/show_bug.cgi?id=3888 > and

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

2021-09-30 Thread Tim Wiederhake
Locks a virMutex on creation and unlocks it in its destructor. The VIR_LOCK_GUARD macro is used instead of "g_autoptr(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