File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -538,7 +538,7 @@ template <class ElemTy> struct ConcurrentReadableArray {
538
538
new (&storage->data ()[count]) ElemTy (elem);
539
539
storage->Count .store (count + 1 , std::memory_order_release);
540
540
541
- if (ReaderCount.load (std::memory_order_acquire ) == 0 )
541
+ if (ReaderCount.load (std::memory_order_seq_cst ) == 0 )
542
542
deallocateFreeList ();
543
543
}
544
544
@@ -853,7 +853,7 @@ struct ConcurrentReadableHashMap {
853
853
// / Free all the arrays in the free lists if there are no active readers. If
854
854
// / there are active readers, do nothing.
855
855
void deallocateFreeListIfSafe () {
856
- if (ReaderCount.load (std::memory_order_acquire ) == 0 )
856
+ if (ReaderCount.load (std::memory_order_seq_cst ) == 0 )
857
857
FreeListNode::freeAll (&FreeList);
858
858
}
859
859
You can’t perform that action at this time.
0 commit comments