From: "Emilio G. Cota" <[email protected]> It will be used for TSAN annotations.
Signed-off-by: Emilio G. Cota <[email protected]> Signed-off-by: Robert Foley <[email protected]> Reviewed-by: Alex Bennée <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Message-Id: <[email protected]> Message-Id: <[email protected]> diff --git a/include/qemu/thread.h b/include/qemu/thread.h index 06c058fb58b..9479facdcc5 100644 --- a/include/qemu/thread.h +++ b/include/qemu/thread.h @@ -215,6 +215,9 @@ static inline void qemu_spin_init(QemuSpin *spin) __sync_lock_release(&spin->value); } +static inline void qemu_spin_destroy(QemuSpin *spin) +{ } + static inline void qemu_spin_lock(QemuSpin *spin) { while (unlikely(__sync_lock_test_and_set(&spin->value, true))) { -- 2.20.1
