util: Use unique type for QemuRecMutex in thread-posix.h
commitdc41737844dbec4736855e128dce0da20c082f65
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 14 Jun 2021 23:31:40 +0000 (14 16:31 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Jun 2021 13:03:26 +0000 (16 15:03 +0200)
treed44c80a01b28124d7cbbf636bd30afdb1deea45c
parentd3192460bffdf31e830a9ef1261b587259e7ebd7
util: Use unique type for QemuRecMutex in thread-posix.h

We will shortly convert lockable.h to _Generic, and we cannot
have two compatible types in the same expansion.  Wrap QemuMutex
in a struct, and unwrap in qemu-thread-posix.c.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210614233143.1221879-6-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/thread-posix.h
util/qemu-thread-posix.c