diff options
author | 2014-01-02 21:49:19 -0800 | |
---|---|---|
committer | 2014-01-02 21:49:19 -0800 | |
commit | dd182144e1d150db76fdb189785d827d1c3f7af0 (patch) | |
tree | af3353726a95ba34406514b27fd9ee2349cd06c3 /src/async/pop | |
parent | 7f0cc7748359bba34797ba9f6833820157ec407b (diff) |
Fixed #531, #530, #529, #528, #527: fixed thread safety in case callback is dispatched in a thread different than main thread.
Diffstat (limited to 'src/async/pop')
-rw-r--r-- | src/async/pop/MCPOPOperation.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/async/pop/MCPOPOperation.cc b/src/async/pop/MCPOPOperation.cc index 76ecdb82..27bfc2ec 100644 --- a/src/async/pop/MCPOPOperation.cc +++ b/src/async/pop/MCPOPOperation.cc @@ -75,7 +75,7 @@ void POPOperation::bodyProgress(POPSession * session, unsigned int current, unsi context->maximum = maximum; retain(); - performMethodOnMainThread((Object::Method) &POPOperation::bodyProgressOnMainThread, context); + performMethodOnCallbackThread((Object::Method) &POPOperation::bodyProgressOnMainThread, context); } void POPOperation::bodyProgressOnMainThread(void * ctx) |