You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#ifndef TASK_HPP
|
|
#define TASK_HPP
|
|
|
|
#include <time.h>
|
|
|
|
class Task
|
|
{
|
|
|
|
public:
|
|
|
|
// Task() {};
|
|
// virtual ~Task() {};
|
|
|
|
virtual void run () = 0;
|
|
virtual bool isItStucked () const = 0;
|
|
|
|
protected:
|
|
|
|
time_t m_startedToRun;
|
|
time_t m_timeOut;
|
|
|
|
};
|
|
|
|
|
|
#endif // TASK_HPP
|