]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/evtloop.h
automatically initialize m_cRef to 0 (patch 575011 + more)
[wxWidgets.git] / include / wx / evtloop.h
index 4e90d3d80326a5c662a4c1305517fc039d8feb88..4ff934f8a719fb431bd037c35510cee125a22d13 100644 (file)
@@ -43,10 +43,18 @@ public:
 
     // is the event loop running now?
     virtual bool IsRunning() const;
+    
+    // return currently active (running) event loop, may be NULL
+    static wxEventLoop *GetActive() { return ms_activeLoop; }
+
+    // set currently active (running) event loop
+    static void SetActive(wxEventLoop* loop) { ms_activeLoop = loop; }
 
 protected:
     // the pointer to the port specific implementation class
     class WXDLLEXPORT wxEventLoopImpl *m_impl;
+    // the pointer to currently active loop
+    static wxEventLoop *ms_activeLoop;
 };
 
 #endif // _WX_EVTLOOP_H_