diff options
Diffstat (limited to 'base/task.h')
-rw-r--r-- | base/task.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/task.h b/base/task.h index 1425546..64b10f3 100644 --- a/base/task.h +++ b/base/task.h @@ -18,8 +18,8 @@ class Task : public tracked_objects::Tracked { public: - Task() {} - virtual ~Task() {} + Task(); + virtual ~Task(); // Tasks are automatically deleted after Run is called. virtual void Run() = 0; @@ -27,6 +27,9 @@ class Task : public tracked_objects::Tracked { class CancelableTask : public Task { public: + CancelableTask(); + virtual ~CancelableTask(); + // Not all tasks support cancellation. virtual void Cancel() = 0; }; |