mirror of
https://github.com/wolfpld/tracy
synced 2025-04-28 20:23:51 +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…
x
Reference in New Issue
Block a user