Skip to content

Commit

Permalink
thread: add qemu_spin_destroy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cota authored and stsquad committed Jun 16, 2020
1 parent 0c0fcc2 commit 4384a70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/qemu/thread.h
Expand Up @@ -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))) {
Expand Down

0 comments on commit 4384a70

Please sign in to comment.