// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#ifdef __VMS
-#define XtParent XTPARENT
-#define XtDisplay XTDISPLAY
-#endif
-
#ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h"
#endif //WX_PRECOMP
#include "wx/evtloop.h"
+#include "wx/thread.h"
#ifdef __VMS__
#pragma message disable nosimpint
::wxBreakDispatch();
}
+bool wxGUIEventLoop::YieldFor(long eventsToProcess)
+{
+ m_isInsideYield = true;
+ m_eventsToProcessInsideYield = eventsToProcess;
+
+ while (wxTheApp && wxTheApp->Pending())
+ // TODO: implement event filtering using the eventsToProcess mask
+ wxTheApp->Dispatch();
+
+ m_isInsideYield = false;
+
+ return true;
+}
+
// ----------------------------------------------------------------------------
// wxEventLoop message processing dispatching
// ----------------------------------------------------------------------------