]> git.ipfire.org Git - thirdparty/qemu.git/commit
lockable: remove QemuLockable from typedefs.h
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 May 2024 14:32:25 +0000 (16:32 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 3 May 2024 13:47:48 +0000 (15:47 +0200)
commit13d110944831e8fb15087697d540d0922ea355f4
treea139e468e4f4a51dee4eaa49559af2c8e9e6bdd0
parenta42706dbe4f14416df5c65de1a90d72cbc338530
lockable: remove QemuLockable from typedefs.h

Using QemuLockable almost always requires going through QEMU_MAKE_LOCKABLE().
Therefore, there is little point in having the typedef always present.  Move
it to lockable.h, with only a small adjustment to coroutine.h (which has
a tricky co-dependency with lockable.h due to defining CoMutex *and*
using QemuLockable as a part of the CoQueue API).

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/coroutine.h
include/qemu/lockable.h
include/qemu/typedefs.h