aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/pop
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-01-02 21:49:19 -0800
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-01-02 21:49:19 -0800
commitdd182144e1d150db76fdb189785d827d1c3f7af0 (patch)
treeaf3353726a95ba34406514b27fd9ee2349cd06c3 /src/async/pop
parent7f0cc7748359bba34797ba9f6833820157ec407b (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.cc2
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)