Switched from wxUsleep to wxMilliSleep/wxMicroSleep.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -296,7 +296,7 @@ int wxEventLoop::Run()
|
|||||||
while ( !Pending() && m_impl->SendIdleMessage() )
|
while ( !Pending() && m_impl->SendIdleMessage() )
|
||||||
{
|
{
|
||||||
wxTheApp->HandleSockets();
|
wxTheApp->HandleSockets();
|
||||||
wxUsleep(10);
|
wxMilliSleep(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTheApp->HandleSockets();
|
wxTheApp->HandleSockets();
|
||||||
@@ -309,7 +309,7 @@ int wxEventLoop::Run()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
wxUsleep(10);
|
wxMilliSleep(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_impl->GetExitCode();
|
return m_impl->GetExitCode();
|
||||||
|
@@ -260,13 +260,20 @@ bool wxSetEnv(const wxString& variable, const wxChar *value)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxUsleep(
|
void wxMilliSleep(
|
||||||
unsigned long ulMilliseconds
|
unsigned long ulMilliseconds
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
::DosSleep(ulMilliseconds);
|
::DosSleep(ulMilliseconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxMicroSleep(
|
||||||
|
unsigned long ulMicroseconds
|
||||||
|
)
|
||||||
|
{
|
||||||
|
::DosSleep(ulMicroseconds/1000);
|
||||||
|
}
|
||||||
|
|
||||||
void wxSleep(
|
void wxSleep(
|
||||||
int nSecs
|
int nSecs
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user