// wxEventLoop running and exiting
// ----------------------------------------------------------------------------
-wxEventLoop *wxEventLoop::ms_activeLoop = NULL;
+wxEventLoop *wxEventLoopBase::ms_activeLoop = NULL;
wxEventLoop::~wxEventLoop()
{
wxASSERT_MSG( !m_impl, _T("should have been deleted in Run()") );
}
-bool wxEventLoop::IsRunning() const
-{
- return m_impl != NULL;
-}
-
int wxEventLoop::Run()
{
// event loops are not recursive, you need to create another loop!
// leave the main loop to give other threads a chance to
// perform their GUI work
wxMutexGuiLeave();
- wxUsleep(20);
+ wxMilliSleep(20);
wxMutexGuiEnter();
}
#endif
close( idleFds[1] );
}
private:
- DECLARE_DYNAMIC_CLASS(wxIdlePipeModule);
+ DECLARE_DYNAMIC_CLASS(wxIdlePipeModule)
};
IMPLEMENT_DYNAMIC_CLASS(wxIdlePipeModule, wxModule);