summaryrefslogtreecommitdiffstats
path: root/async/src/future.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-01-19 03:10:09 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-01-19 03:10:09 +0100
commit58385e4a48ff85fa847b4264d3f5216f62af24c1 (patch)
treeaa1624281830acfc4b6aa14d6e61ed16b2f50450 /async/src/future.cpp
parentd417f01e2eebeedfaae76b40667372bd0fb21fea (diff)
downloadsink-58385e4a48ff85fa847b4264d3f5216f62af24c1.tar.gz
sink-58385e4a48ff85fa847b4264d3f5216f62af24c1.zip
Fixed Async::Future.
The future is copied an the finished boolean has to be in the shared part, otherwise the original copy never receives the updated value.
Diffstat (limited to 'async/src/future.cpp')
-rw-r--r--async/src/future.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/async/src/future.cpp b/async/src/future.cpp
index 4b34514..ab02baf 100644
--- a/async/src/future.cpp
+++ b/async/src/future.cpp
@@ -20,12 +20,10 @@
20using namespace Async; 20using namespace Async;
21 21
22FutureBase::FutureBase() 22FutureBase::FutureBase()
23 : mFinished(false)
24{ 23{
25} 24}
26 25
27FutureBase::FutureBase(const Async::FutureBase &other) 26FutureBase::FutureBase(const Async::FutureBase &other)
28 : mFinished(other.mFinished)
29{ 27{
30} 28}
31 29
@@ -33,11 +31,6 @@ FutureBase::~FutureBase()
33{ 31{
34} 32}
35 33
36bool FutureBase::isFinished() const
37{
38 return mFinished;
39}
40
41FutureWatcherBase::FutureWatcherBase(QObject *parent) 34FutureWatcherBase::FutureWatcherBase(QObject *parent)
42 : QObject(parent) 35 : QObject(parent)
43{ 36{