From: Jeff Preshing Date: Tue, 16 Feb 2016 21:19:41 +0000 (-0500) Subject: Fix compile error in SimpleRelaxed using C++11 atomics X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8af5df0e520fd17c942d6930420005ce3780d63;p=junction.git Fix compile error in SimpleRelaxed using C++11 atomics --- 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)); } } };