OSDN Git Service

util: Use unique type for QemuRecMutex in thread-posix.h
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 14 Jun 2021 23:31:40 +0000 (16:31 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 16 Jun 2021 01:31:00 +0000 (18:31 -0700)
commit6c98635ed7772e63b98944ab972c1eef8e498da3
tree9ac8d75f0f828b0562423c6e25f4513f95af9375
parent9c75bae717eae4c139cbd8b6a713cff01fe718f0
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: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-6-richard.henderson@linaro.org>
include/qemu/thread-posix.h
util/qemu-thread-posix.c