diff options
author | 2013-02-04 22:25:50 -0800 | |
---|---|---|
committer | 2013-02-04 22:25:50 -0800 | |
commit | 7620295ce1cce969f7dced4d19a248f46889fe9b (patch) | |
tree | 685fc8b3de079dfa5738265979a1c7fb9ddf89d9 /src/core/basetypes/MCOperationQueue.h | |
parent | 7437be6e661b83e5e3af85848c940f9fd2f533de (diff) |
Revert "Change pthread usage in MCOperationQueue to use std::mutex/std::thread"
This reverts commit 54b038df296c4bb85bcd1a586f7c90c4c76d09e0.
Diffstat (limited to 'src/core/basetypes/MCOperationQueue.h')
-rw-r--r-- | src/core/basetypes/MCOperationQueue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/basetypes/MCOperationQueue.h b/src/core/basetypes/MCOperationQueue.h index bb862e72..dd503bb3 100644 --- a/src/core/basetypes/MCOperationQueue.h +++ b/src/core/basetypes/MCOperationQueue.h @@ -6,7 +6,6 @@ #include <semaphore.h> #include <mailcore/MCObject.h> #include <libetpan/libetpan.h> -#include <mutex> #ifdef __cplusplus @@ -31,12 +30,13 @@ namespace mailcore { struct mailsem * mOperationSem; struct mailsem * mStartSem; struct mailsem * mStopSem; - std::mutex mLock; + pthread_mutex_t mLock; bool mWaiting; struct mailsem * mWaitingFinishedSem; bool mQuitting; void startThread(); + static void runOperationsOnThread(OperationQueue * queue); void runOperations(); void callbackOnMainThread(Operation * op); void checkRunningOnMainThread(void * context); |