diff options
author | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-12 23:24:05 +0100 |
---|---|---|
committer | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-12 23:24:05 +0100 |
commit | c35dfbd0bb8a1abfef876bb6dbe20945867a5270 (patch) | |
tree | 895fbe6a09c24c45f09d33da7bf46a2e19e0155c /engine/include/flattask.h | |
parent | initialization (diff) | |
download | flatland-c35dfbd0bb8a1abfef876bb6dbe20945867a5270.tar.gz flatland-c35dfbd0bb8a1abfef876bb6dbe20945867a5270.zip |
edas
Diffstat (limited to 'engine/include/flattask.h')
-rw-r--r-- | engine/include/flattask.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/engine/include/flattask.h b/engine/include/flattask.h index bb8c175..b470737 100644 --- a/engine/include/flattask.h +++ b/engine/include/flattask.h @@ -11,29 +11,16 @@ class task_s public: - task_s() - { - /* Push into the public callback list */ - tasks.push_back(this); - } + task_s(); - virtual ~task_s() - { - /* Remove from the public callback list */ - tasks.remove(this); - } + virtual ~task_s(); virtual void exec() = 0; /* Execute all tasks */ - static void executeAll() - { - for (task_s * task : tasks) - task->exec(); - } + static void executeAll(); }; - template<class T> class FlatTask : public task_s { |