Update of /cvsroot/mahogany/M/include/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4914/include/gui
Modified Files:
wxMApp.h wxMDialogs.h
Log Message:
fixed reentrancy problems which occured when a folder update timer fired while the
header retrieval progress dialog was opened
Index: wxMApp.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxMApp.h,v
retrieving revision 1.72
retrieving revision 1.73
diff -b -u -2 -r1.72 -r1.73
--- wxMApp.h 12 Oct 2003 01:41:21 -0000 1.72
+++ wxMApp.h 21 Apr 2004 17:42:14 -0000 1.73
@@ -156,4 +156,6 @@
virtual bool AllowBgProcessing() const;
+ virtual void EnterCritical();
+ virtual void LeaveCritical();
/// updates display of outbox status
Index: wxMDialogs.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxMDialogs.h,v
retrieving revision 1.113
retrieving revision 1.114
diff -b -u -2 -r1.113 -r1.114
--- wxMDialogs.h 12 Oct 2003 01:41:21 -0000 1.113
+++ wxMDialogs.h 21 Apr 2004 17:42:14 -0000 1.114
@@ -95,4 +95,11 @@
}
+private:
+ // forbid background processing during the life time of the progress dialog
+ // object: this can lead to nasty reentrancies if, e.g. a timer fires while
+ // we're retrieving headers for the folder and results in a reentrant call
+ // to c-client
+ MAppCriticalSection m_appCS;
+
DECLARE_NO_COPY_CLASS(MProgressDialog)
};
-------------------------------------------------------
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