diff options
author | Emilio G. Cota | 2020-06-12 21:02:25 +0200 |
---|---|---|
committer | Alex Bennée | 2020-06-16 15:49:05 +0200 |
commit | 4384a70d0188a356d85a80c62ae88ec5aef8b3ee (patch) | |
tree | 93859f023544ba1bc609b28710dc8902cd2d5986 /include/qemu/thread.h | |
parent | cpu: convert queued work to a QSIMPLEQ (diff) | |
download | qemu-4384a70d0188a356d85a80c62ae88ec5aef8b3ee.tar.gz qemu-4384a70d0188a356d85a80c62ae88ec5aef8b3ee.tar.xz qemu-4384a70d0188a356d85a80c62ae88ec5aef8b3ee.zip |
thread: add qemu_spin_destroy
It will be used for TSAN annotations.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200609200738.445-4-robert.foley@linaro.org>
Message-Id: <20200612190237.30436-7-alex.bennee@linaro.org>
Diffstat (limited to 'include/qemu/thread.h')
-rw-r--r-- | include/qemu/thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qemu/thread.h b/include/qemu/thread.h index 06c058fb58..9479facdcc 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))) { |