Add init method to ABA on ARM (#331)

This method is used in the Verona SPMCQ.
This commit is contained in:
Theo Butler
2021-05-26 16:06:42 -04:00
committed by GitHub
parent 589ecfab02
commit 7d346c0b2d

View File

@@ -157,6 +157,12 @@ namespace snmalloc
std::atomic_flag lock = ATOMIC_FLAG_INIT;
public:
// This method is used in Verona
void init(Ptr<T> x)
{
ptr.store(x, std::memory_order_relaxed);
}
struct Cmp;
Cmp read()