From 7d346c0b2df3f0238c76158771b244a015d70194 Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Wed, 26 May 2021 16:06:42 -0400 Subject: [PATCH] Add init method to ABA on ARM (#331) This method is used in the Verona SPMCQ. --- src/ds/aba.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ds/aba.h b/src/ds/aba.h index 4b8f071..c9a5d20 100644 --- a/src/ds/aba.h +++ b/src/ds/aba.h @@ -157,6 +157,12 @@ namespace snmalloc std::atomic_flag lock = ATOMIC_FLAG_INIT; public: + // This method is used in Verona + void init(Ptr x) + { + ptr.store(x, std::memory_order_relaxed); + } + struct Cmp; Cmp read()