summaryrefslogtreecommitdiffstats
path: root/common/resultprovider.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-22 09:25:18 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-22 09:25:18 +0100
commite5125013a2661b30f21323f1a3f925103e8d589f (patch)
treeddd1eeafb49f2305446e784804bc3604560d844e /common/resultprovider.h
parent8e6671fe6d6519f1fecf37338a3263a5b88a00d1 (diff)
downloadsink-e5125013a2661b30f21323f1a3f925103e8d589f.tar.gz
sink-e5125013a2661b30f21323f1a3f925103e8d589f.zip
Threadboundary cleanup
Diffstat (limited to 'common/resultprovider.h')
-rw-r--r--common/resultprovider.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/resultprovider.h b/common/resultprovider.h
index 2c373c3..7f090e9 100644
--- a/common/resultprovider.h
+++ b/common/resultprovider.h
@@ -97,9 +97,7 @@ private:
97 //That way the result emitter implementation doesn't have to care about threadsafety at all. 97 //That way the result emitter implementation doesn't have to care about threadsafety at all.
98 //The alternative would be to make all handlers of the emitter threadsafe. 98 //The alternative would be to make all handlers of the emitter threadsafe.
99 if (auto emitter = mResultEmitter.toStrongRef()) { 99 if (auto emitter = mResultEmitter.toStrongRef()) {
100 emitter->mThreadBoundary.callInMainThread([f]() { 100 emitter->mThreadBoundary.callInMainThread(f);
101 f();
102 });
103 } 101 }
104 } 102 }
105 103