mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 00:21:25 +00:00
Use more compliant sleep command
This commit is contained in:
parent
4a19bef2ac
commit
fb68fc3f85
@ -54,6 +54,7 @@
|
||||
#include <wx/regex.h>
|
||||
#include <wx/txtstrm.h>
|
||||
|
||||
#include <thread>
|
||||
|
||||
|
||||
#define CUSTOMPANEL_COUNTMAX 8 // Max number of netlist plugins
|
||||
@ -573,7 +574,7 @@ bool DIALOG_EXPORT_NETLIST::TransferDataFromWindow()
|
||||
reporter.ReportHead( commandLine, RPT_SEVERITY_ACTION );
|
||||
process->Activate();
|
||||
|
||||
sleep( 1 ); // give the process time to start and output any data or errors
|
||||
std::this_thread::sleep_for( std::chrono::seconds( 1 ) ); // give the process time to start and output any data or errors
|
||||
|
||||
if( process->IsInputAvailable() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user