Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-10-19 23:00:40 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-10-19 23:00:40 +0300
commit7eba104e127f3172722fa385b0e3e1fe9c220409 (patch)
tree39c2f5c68c05a95bf9e087b42fec05d16cdfaa15
parente3eead78a83966e45f03d366134eb8d22abd65b0 (diff)
Sleep in capture when waiting for connection.
-rw-r--r--capture/src/capture.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp
index 24b40dc6..0a49c3f2 100644
--- a/capture/src/capture.cpp
+++ b/capture/src/capture.cpp
@@ -177,6 +177,7 @@ int main( int argc, char** argv )
printf( "\nThe client you are trying to connect to has disconnected during the initial\nconnection handshake. Please check your network configuration.\n" );
return 3;
}
+ std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) );
}
while( !worker.HasData() ) std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) );
printf( "\nQueue delay: %s\nTimer resolution: %s\n", tracy::TimeToString( worker.GetDelay() ), tracy::TimeToString( worker.GetResolution() ) );