diff options
Diffstat (limited to 'async/src/async.cpp')
-rw-r--r-- | async/src/async.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/async/src/async.cpp b/async/src/async.cpp index 5c89e53..7e81f24 100644 --- a/async/src/async.cpp +++ b/async/src/async.cpp | |||
@@ -28,11 +28,18 @@ | |||
28 | 28 | ||
29 | using namespace Async; | 29 | using namespace Async; |
30 | 30 | ||
31 | JobBase::JobBase(JobBase::JobType jobType, JobBase* prev) | ||
32 | : mPrev(prev) | ||
33 | , mResult(0) | ||
34 | , mJobType(jobType) | ||
35 | { | ||
36 | } | ||
37 | |||
38 | |||
31 | FutureBase::FutureBase() | 39 | FutureBase::FutureBase() |
32 | : mFinished(false) | 40 | : mFinished(false) |
33 | , mWaitLoop(nullptr) | 41 | , mWaitLoop(nullptr) |
34 | { | 42 | { |
35 | |||
36 | } | 43 | } |
37 | 44 | ||
38 | FutureBase::FutureBase(const Async::FutureBase &other) | 45 | FutureBase::FutureBase(const Async::FutureBase &other) |
@@ -65,3 +72,4 @@ void FutureBase::waitForFinished() | |||
65 | delete mWaitLoop; | 72 | delete mWaitLoop; |
66 | mWaitLoop = 0; | 73 | mWaitLoop = 0; |
67 | } | 74 | } |
75 | |||