Win16 corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -301,7 +301,23 @@ static wxTimer *wxTheSleepTimer = NULL;
|
||||
|
||||
void wxUsleep(unsigned long milliseconds)
|
||||
{
|
||||
#ifdef __WIN32__
|
||||
::Sleep(milliseconds);
|
||||
#else
|
||||
if (inTimer)
|
||||
return;
|
||||
|
||||
wxTheSleepTimer = new wxSleepTimer;
|
||||
inTimer = TRUE;
|
||||
wxTheSleepTimer->Start(milliseconds);
|
||||
while (inTimer)
|
||||
{
|
||||
if (wxTheApp->Pending())
|
||||
wxTheApp->Dispatch();
|
||||
}
|
||||
delete wxTheSleepTimer;
|
||||
wxTheSleepTimer = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxSleep(int nSecs)
|
||||
|
Reference in New Issue
Block a user