mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Only one outgoing server connection is supported.
This commit is contained in:
parent
2ae2399f31
commit
806c8de463
@ -1273,12 +1273,13 @@ void Worker::Exec()
|
|||||||
return m_shutdown.load( std::memory_order_relaxed );
|
return m_shutdown.load( std::memory_order_relaxed );
|
||||||
};
|
};
|
||||||
|
|
||||||
auto lz4buf = std::make_unique<char[]>( LZ4Size );
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
if( m_shutdown.load( std::memory_order_relaxed ) ) return;
|
if( m_shutdown.load( std::memory_order_relaxed ) ) return;
|
||||||
if( !m_sock.Connect( m_addr.c_str(), "8086" ) ) continue;
|
if( m_sock.Connect( m_addr.c_str(), "8086" ) ) break;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto lz4buf = std::make_unique<char[]>( LZ4Size );
|
||||||
std::chrono::time_point<std::chrono::high_resolution_clock> t0;
|
std::chrono::time_point<std::chrono::high_resolution_clock> t0;
|
||||||
|
|
||||||
uint64_t bytes = 0;
|
uint64_t bytes = 0;
|
||||||
@ -1408,7 +1409,6 @@ close:
|
|||||||
m_sock.Close();
|
m_sock.Close();
|
||||||
m_connected.store( false, std::memory_order_relaxed );
|
m_connected.store( false, std::memory_order_relaxed );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void Worker::ServerQuery( uint8_t type, uint64_t data )
|
void Worker::ServerQuery( uint8_t type, uint64_t data )
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user