// wxEventLoop
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxEventLoop : public wxEventLoopManual
+class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopManual
{
public:
- wxEventLoop();
+ wxGUIEventLoop();
virtual bool Pending() const;
virtual bool Dispatch();
+ virtual int DispatchTimeout(unsigned long timeout);
// returns DirectFB event buffer used by wx
static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer();
+ // wxYield implementation: iterate the loop as long as there are any
+ // pending events
+ void Yield();
+
protected:
virtual void WakeUp();
virtual void OnNextIteration();
private:
static void InitBuffer();
+ static void CleanUp();
+
+ friend class wxApp; // calls CleanUp() and WakeUp()
private:
static wxIDirectFBEventBufferPtr ms_buffer;
- friend class wxApp; // calls WakeUp()
-
- DECLARE_NO_COPY_CLASS(wxEventLoop)
+ DECLARE_NO_COPY_CLASS(wxGUIEventLoop)
};
#endif // _WX_DFB_EVTLOOP_H_