mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't sleep if queues are empty, but there's queries to handle.
This commit is contained in:
parent
6bb05c5b97
commit
68948712b4
@ -1676,7 +1676,7 @@ void Profiler::Worker()
|
|||||||
|
|
||||||
keepAlive = 0;
|
keepAlive = 0;
|
||||||
}
|
}
|
||||||
else
|
else if( !m_sock->HasData() )
|
||||||
{
|
{
|
||||||
keepAlive++;
|
keepAlive++;
|
||||||
std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );
|
std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user