Function netio_timer_init

Function Documentation

void netio_timer_init(struct netio_eventloop *evloop, struct netio_timer *timer)

Initializes a timer and registers it with the event loop.

Internally, timers are implemented using timerfd.

Parameters:
  • evloop – The event loop in which the timer will be registered