Change header
This commit is contained in:
parent
c88aa8f04f
commit
53a3c0d105
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user