Use proper memory ordering.

This commit is contained in:
Bartosz Taudul 2019-11-10 17:30:38 +01:00
parent d4a1168491
commit 44f1d3dc1c

View File

@ -113,7 +113,7 @@ public:
} }
else else
{ {
memUsage.fetch_add( size ); memUsage.fetch_add( size, std::memory_order_relaxed );
m_usage += size; m_usage += size;
auto ret = new char[size]; auto ret = new char[size];
m_buffer.emplace_back( ret ); m_buffer.emplace_back( ret );