sleep while waiting for the spawned process to terminate so that we don't eat 100 of the CPU
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -735,7 +735,11 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
while ( data->state )
|
||||
{
|
||||
// don't take 100% of the CPU
|
||||
::Sleep(500);
|
||||
wxYield();
|
||||
}
|
||||
|
||||
#if wxUSE_GUI
|
||||
}
|
||||
|
Reference in New Issue
Block a user