Change header

This commit is contained in:
Bob Polis 2024-02-01 11:12:30 +01:00
parent c88aa8f04f
commit 53a3c0d105

View File

@ -3,8 +3,7 @@
#include <cstdint> #include <cstdint>
#include <mutex> #include <mutex>
#include <signal.h> #include <csignal>
#include <time.h>
namespace sc { namespace sc {
@ -20,7 +19,7 @@ namespace sc {
timer_t _tid; timer_t _tid;
public: public:
timer(double time, timer(double time, // seconds
bool repeat, bool repeat,
void(*expired_func)(const timer&), void(*expired_func)(const timer&),
void* context = nullptr); void* context = nullptr);
@ -30,7 +29,7 @@ namespace sc {
timer(const timer&) = delete; timer(const timer&) = delete;
timer& operator=(const timer&) = delete; timer& operator=(const timer&) = delete;
// forbid moveing // forbid moving
timer(timer&&) = delete; timer(timer&&) = delete;
timer& operator=(timer&&) = delete; timer& operator=(timer&&) = delete;