X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finternaltask.h;h=c927b0ba9de5f0261ceb07b54860a5a89a3b044a;hb=HEAD;hp=399e11937fe0d71e0532f85683aa48632f841286;hpb=afeb81fb97b8ee4e50a3679707deb17e5b79a74f;p=builder.git diff --git a/source/internaltask.h b/source/internaltask.h deleted file mode 100644 index 399e119..0000000 --- a/source/internaltask.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef INTERNALTASK_H_ -#define INTERNALTASK_H_ - -#include -#include "task.h" - -/** -Runs a worker thread. Tools should derive a thread class from -InternalTask::Worker. The worker thread must set its status to either SUCCESS -or ERROR before terminating. -*/ -class InternalTask: public Task -{ -public: - class Worker: public Msp::Thread - { - friend class InternalTask; - - protected: - Status status; - - Worker(); - - public: - Status get_status() const { return status; } - }; - -private: - Worker *worker; - -public: - InternalTask(Worker *); - ~InternalTask(); - - virtual std::string get_command() const { return ""; } - virtual void start(); - virtual Status check(); - virtual Status wait(); -}; - -#endif