From 44f1d3dc1ce6a1b230e997c7650d513a28cecc75 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 10 Nov 2019 17:30:38 +0100 Subject: [PATCH] Use proper memory ordering. --- server/TracySlab.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySlab.hpp b/server/TracySlab.hpp index 705af1da..118a60d5 100644 --- a/server/TracySlab.hpp +++ b/server/TracySlab.hpp @@ -113,7 +113,7 @@ public: } else { - memUsage.fetch_add( size ); + memUsage.fetch_add( size, std::memory_order_relaxed ); m_usage += size; auto ret = new char[size]; m_buffer.emplace_back( ret );