]> Git Repo - qemu.git/commitdiff
thread: add qemu_spin_destroy
authorEmilio G. Cota <[email protected]>
Fri, 12 Jun 2020 19:02:25 +0000 (20:02 +0100)
committerAlex Bennée <[email protected]>
Tue, 16 Jun 2020 13:49:05 +0000 (14:49 +0100)
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: <20200609200738[email protected]>
Message-Id: <20200612190237[email protected]>

include/qemu/thread.h

index 06c058fb58b315f3c4f0dd539129871bc4da8e32..9479facdcc5673cb5ea4541b047972e1ce3fc94b 100644 (file)
@@ -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))) {
This page took 0.026884 seconds and 4 git commands to generate.