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.
26 lines
220 B
26 lines
220 B
14 years ago
|
#ifndef TASK_HPP
|
||
|
#define TASK_HPP
|
||
|
|
||
|
#include <time.h>
|
||
|
|
||
|
class Task
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
|
||
|
Task();
|
||
|
|
||
|
void run ();
|
||
|
|
||
|
bool isItStucked () const;
|
||
|
|
||
|
private:
|
||
|
|
||
|
time_t m_startedToRun;
|
||
|
time_t m_timeOut;
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // TASK_HPP
|