Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1:/tmp/cvs-serv19223/include

Modified Files:
        MEvent.h guidef.h 
Log Message:
Prevented recursion in MEvent::DispatchPending due to idle loop and wxYield in busy 
cursor

Index: MEvent.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MEvent.h,v
retrieving revision 1.54
retrieving revision 1.55
diff -b -u -2 -r1.54 -r1.55
--- MEvent.h    3 Apr 2003 19:47:13 -0000       1.54
+++ MEvent.h    14 Sep 2003 16:10:43 -0000      1.55
@@ -478,4 +478,7 @@
    static void DispatchPending(void);
 
+   /// dispatches all events in the queue, even if it is called recursively.
+   static void ForceDispatchPending(void);
+
    // register the event receiever for the events "eventId", the returned
    // pointer is NULL if the function failed, otherwise it should be saved for

Index: guidef.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/guidef.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -b -u -2 -r1.22 -r1.23
--- guidef.h    24 Dec 2001 01:37:16 -0000      1.22
+++ guidef.h    14 Sep 2003 16:10:44 -0000      1.23
@@ -76,3 +76,16 @@
                                         bool mayAskUser = false);
 
+// Prevent MEvent dispatch inside wxYield
+extern int g_busyCursorYield;
+
+extern void MBeginBusyCursor();
+extern void MEndBusyCursor();
+
+class MBusyCursor
+{
+public:
+   MBusyCursor() { MBeginBusyCursor(); }
+   ~MBusyCursor() { MEndBusyCursor(); }
+};
+
 #endif // GUIDEF_H



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to