diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-22 09:25:18 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-22 09:25:18 +0100 |
commit | e5125013a2661b30f21323f1a3f925103e8d589f (patch) | |
tree | ddd1eeafb49f2305446e784804bc3604560d844e /common/resultprovider.h | |
parent | 8e6671fe6d6519f1fecf37338a3263a5b88a00d1 (diff) | |
download | sink-e5125013a2661b30f21323f1a3f925103e8d589f.tar.gz sink-e5125013a2661b30f21323f1a3f925103e8d589f.zip |
Threadboundary cleanup
Diffstat (limited to 'common/resultprovider.h')
-rw-r--r-- | common/resultprovider.h | 4 |
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 | ||