aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPSession.h
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-02-28 12:14:09 -0800
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-02-28 12:14:19 -0800
commit74392d0ccd70fd5c859fc879d0dfb60e20f8fd58 (patch)
tree0893478357173d8019affc3a912bff9dba80320e /src/core/imap/MCIMAPSession.h
parenteac836a9858e765e0fb07f1b1f4b325893666fe6 (diff)
Improved thread safety on connectionLogger
Diffstat (limited to 'src/core/imap/MCIMAPSession.h')
-rwxr-xr-xsrc/core/imap/MCIMAPSession.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPSession.h b/src/core/imap/MCIMAPSession.h
index effa0fe8..5f516ff5 100755
--- a/src/core/imap/MCIMAPSession.h
+++ b/src/core/imap/MCIMAPSession.h
@@ -217,7 +217,9 @@ namespace mailcore {
virtual void resetAutomaticConfigurationDone();
virtual void applyCapabilities(IndexSet * capabilities);
virtual IndexSet * storedCapabilities();
-
+ virtual void lockConnectionLogger();
+ virtual void unlockConnectionLogger();
+
private:
String * mHostname;
unsigned int mPort;
@@ -264,6 +266,7 @@ namespace mailcore {
IMAPProgressCallback * mProgressCallback;
unsigned int mProgressItemsCount;
ConnectionLogger * mConnectionLogger;
+ pthread_mutex_t mConnectionLoggerLock;
bool mAutomaticConfigurationEnabled;
bool mAutomaticConfigurationDone;
bool mShouldDisconnect;