Re: [libvirt PATCH 06/11] virthread: Introduce WITH_VIR_MUTEX_LOCK_GUARD

2021-08-25 Thread Ján Tomko
On a Wednesday in 2021, Tim Wiederhake wrote: Modeled after "WITH_QEMU_LOCK_GUARD" (see qemu's include/qemu/lockable.h). Uses "__LINE__" instead of "__COUNTER__", as the latter is a GNU extension. We mandate gnu99 in meson.build. But it seems both would work. See comment for typical usage.

[libvirt PATCH 06/11] virthread: Introduce WITH_VIR_MUTEX_LOCK_GUARD

2021-08-25 Thread Tim Wiederhake
Modeled after "WITH_QEMU_LOCK_GUARD" (see qemu's include/qemu/lockable.h). Uses "__LINE__" instead of "__COUNTER__", as the latter is a GNU extension. See comment for typical usage. Signed-off-by: Tim Wiederhake --- src/util/virthread.h | 20 1 file changed, 20 insertions(+