aegis-dos-protection/include/Threads/Thread.hpp
2021-10-23 16:53:40 +02:00

23 lines
390 B
C++

#pragma once
#include <stdint.h>
class Thread {
public:
/**
* @brief Construct a new Thread object
*/
inline Thread() : _quit(false), _running(true) {}
/**
* @brief quit the thread
*/
inline void quit() { _quit = true; }
inline bool is_running() { return _running; }
protected:
bool _quit;
bool _running;
uint64_t _cycles_old;
};