1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

More strict memory ordering for on-demand connection status.

This commit is contained in:
Bartosz Taudul
2019-06-09 16:48:00 +02:00
parent e2d42fae2f
commit cc5bad294a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1162,7 +1162,7 @@ void Profiler::Worker()
#ifdef TRACY_ON_DEMAND
ClearQueues( token );
m_isConnected.store( true, std::memory_order_relaxed );
m_isConnected.store( true, std::memory_order_release );
#endif
HandshakeStatus handshake = HandshakeWelcome;
@@ -1232,7 +1232,7 @@ void Profiler::Worker()
if( ShouldExit() ) break;
#ifdef TRACY_ON_DEMAND
m_isConnected.store( false, std::memory_order_relaxed );
m_isConnected.store( false, std::memory_order_release );
#endif
m_sock->~Socket();