mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
More strict memory ordering for on-demand connection status.
This commit is contained in:
parent
e2d42fae2f
commit
cc5bad294a
@ -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();
|
||||
|
@ -407,7 +407,7 @@ public:
|
||||
#ifdef TRACY_ON_DEMAND
|
||||
tracy_force_inline bool IsConnected()
|
||||
{
|
||||
return m_isConnected.load( std::memory_order_relaxed );
|
||||
return m_isConnected.load( std::memory_order_acquire );
|
||||
}
|
||||
|
||||
tracy_force_inline void DeferItem( const QueueItem& item )
|
||||
|
Loading…
Reference in New Issue
Block a user