User callback gets const timer& arg instead of ptr
This commit is contained in:
@ -14,7 +14,7 @@ namespace sc {
|
||||
uint64_t _id {};
|
||||
double _time {};
|
||||
bool _repeat {};
|
||||
void (*_expired_func)(timer* self);
|
||||
void (*_expired_func)(const timer& self);
|
||||
void* _context {};
|
||||
|
||||
static void callback(union sigval);
|
||||
@ -22,7 +22,7 @@ namespace sc {
|
||||
public:
|
||||
timer(double time,
|
||||
bool repeat,
|
||||
void(*expired_func)(timer*),
|
||||
void(*expired_func)(const timer&),
|
||||
void* context = nullptr);
|
||||
~timer();
|
||||
|
||||
|
Reference in New Issue
Block a user