X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftask.h;h=9cf2bac9081b7b2c8df1627342aa1dd14600d8ff;hb=f515e91176cb4fcb1df379cdf664c90b3a565c95;hp=03d212bc74af1ac1b7eaaaaabfe8f7ec0e64aa72;hpb=b5ccba555f4985233532041c34e28d71dd58933f;p=builder.git diff --git a/source/task.h b/source/task.h index 03d212b..9cf2bac 100644 --- a/source/task.h +++ b/source/task.h @@ -1,8 +1,13 @@ #ifndef TASK_H_ #define TASK_H_ +#include #include +/** +Tasks are used to manage other programs and worker threads involved in the +build process. They are run asynchronously. +*/ class Task { public: @@ -20,8 +25,10 @@ protected: public: virtual ~Task() { } + virtual std::string get_command() const = 0; virtual void start() = 0; virtual Status check() = 0; + virtual Status wait() = 0; }; #endif