8 #ifndef _TASKS_TIMER_TASK_H_
9 #define _TASKS_TIMER_TASK_H_
26 std::ostringstream os;
27 os <<
"timer_task(" <<
this <<
")";
49 #endif // _TASKS_TIMER_TASK_H_
void stop_watcher(worker *worker)
Deactivate the underlying watcher.
void init_watcher()
Initialize the underlying watcher object.
std::unique_ptr< ev_timer > m_timer
void start_watcher(worker *worker)
Activate the underlying watcher to listen for I/O or timer events.
ev_timer * watcher() const
std::string get_string() const
timer_task(double after, double repeat)