]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/evtloop.h
A little different fix for how to delay the call to __wxCleanup
[wxWidgets.git] / include / wx / evtloop.h
index 4e90d3d80326a5c662a4c1305517fc039d8feb88..2a71defd7a741c8144070a3012d04452708aa5f5 100644 (file)
@@ -43,10 +43,15 @@ 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; }
 
 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_