diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-19 03:10:09 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-19 03:10:09 +0100 |
commit | 58385e4a48ff85fa847b4264d3f5216f62af24c1 (patch) | |
tree | aa1624281830acfc4b6aa14d6e61ed16b2f50450 /async/src/future.cpp | |
parent | d417f01e2eebeedfaae76b40667372bd0fb21fea (diff) | |
download | sink-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.cpp | 7 |
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 @@ | |||
20 | using namespace Async; | 20 | using namespace Async; |
21 | 21 | ||
22 | FutureBase::FutureBase() | 22 | FutureBase::FutureBase() |
23 | : mFinished(false) | ||
24 | { | 23 | { |
25 | } | 24 | } |
26 | 25 | ||
27 | FutureBase::FutureBase(const Async::FutureBase &other) | 26 | FutureBase::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 | ||
36 | bool FutureBase::isFinished() const | ||
37 | { | ||
38 | return mFinished; | ||
39 | } | ||
40 | |||
41 | FutureWatcherBase::FutureWatcherBase(QObject *parent) | 34 | FutureWatcherBase::FutureWatcherBase(QObject *parent) |
42 | : QObject(parent) | 35 | : QObject(parent) |
43 | { | 36 | { |