summaryrefslogtreecommitdiffstats
path: root/util/qemu-thread-posix.c
diff options
context:
space:
mode:
authorRichard Henderson2021-06-15 01:31:41 +0200
committerRichard Henderson2021-06-16 03:31:00 +0200
commit4ffb0681d7de34a5286f390a19fb48709107903b (patch)
treea60d4685aa2637b4018399e52df2641706e22c04 /util/qemu-thread-posix.c
parentutil: Use unique type for QemuRecMutex in thread-posix.h (diff)
downloadqemu-4ffb0681d7de34a5286f390a19fb48709107903b.tar.gz
qemu-4ffb0681d7de34a5286f390a19fb48709107903b.tar.xz
qemu-4ffb0681d7de34a5286f390a19fb48709107903b.zip
include/qemu/lockable: Use _Generic instead of QEMU_GENERIC
This is both more and less complicated than our expansion using __builtin_choose_expr and __builtin_types_compatible_p. The expansion through QEMU_MAKE_LOCKABLE_ doesn't work because we're not emumerating all of the types within the same _Generic, which results in errors about unhandled cases. We must also handle void* explicitly, so that the NULL constant can be used. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20210614233143.1221879-7-richard.henderson@linaro.org>
Diffstat (limited to 'util/qemu-thread-posix.c')
0 files changed, 0 insertions, 0 deletions