1 #ifndef INTERNALTASK_H_
2 #define INTERNALTASK_H_
4 #include <msp/core/thread.h>
8 Runs a worker thread. Tools should derive a thread class from
9 InternalTask::Worker. The worker thread must set its status to either SUCCESS
10 or ERROR before terminating.
12 class InternalTask: public Task
15 class Worker: public Msp::Thread
17 friend class InternalTask;
20 volatile Status status;
25 Status get_status() const { return status; }
32 InternalTask(Worker *);
35 virtual std::string get_command() const { return "<internal>"; }
37 virtual Status check();
38 virtual Status wait();