From a8af5df0e520fd17c942d6930420005ce3780d63 Mon Sep 17 00:00:00 2001 From: Jeff Preshing Date: Tue, 16 Feb 2016 16:19:41 -0500 Subject: [PATCH] Fix compile error in SimpleRelaxed using C++11 atomics --- junction/ConcurrentMap_SimpleRelaxed.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/junction/ConcurrentMap_SimpleRelaxed.h b/junction/ConcurrentMap_SimpleRelaxed.h index d0f9a1a..269db9a 100644 --- a/junction/ConcurrentMap_SimpleRelaxed.h +++ b/junction/ConcurrentMap_SimpleRelaxed.h @@ -97,8 +97,8 @@ public: // Must be called when there are no concurrent readers or writers for (ureg idx = 0; idx <= m_sizeMask; idx++) { Cell* cell = m_cells + idx; - cell->key = KeyTraits::NullKey; - cell->value = Value(ValueTraits::NullValue); + cell->key.storeNonatomic(KeyTraits::NullKey); + cell->value.storeNonatomic(Value(ValueTraits::NullValue)); } } }; -- 2.34.1