Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4914/src/gui

Modified Files:
        wxMApp.cpp 
Log Message:
fixed reentrancy problems which occured when a folder update timer fired while the 
header retrieval progress dialog was opened

Index: wxMApp.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMApp.cpp,v
retrieving revision 1.288
retrieving revision 1.289
diff -b -u -2 -r1.288 -r1.289
--- wxMApp.cpp  20 Apr 2004 13:09:54 -0000      1.288
+++ wxMApp.cpp  21 Apr 2004 17:42:15 -0000      1.289
@@ -531,4 +531,16 @@
 }
 
+void
+wxMApp::EnterCritical()
+{
+   gs_mutexBlockBg.Lock();
+}
+
+void
+wxMApp::LeaveCritical()
+{
+   gs_mutexBlockBg.Unlock();
+}
+
 #ifdef __WXDEBUG__
 
@@ -559,7 +571,10 @@
 wxMApp::Yield(bool onlyIfNeeded)
 {
-   // try to not crash...
    if ( gs_mutexBlockBg.IsLocked() )
-      return false;
+   {
+      // background processing already disabled, hopefully it's ok to yield
+      // now...
+      return wxApp::Yield(onlyIfNeeded);
+   }
 
    // don't allow any calls to c-client from inside wxYield() neither as it is



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to