Use a single timerfd_manager for all timers

This commit is contained in:
Vitaliy Filippov
2020-04-25 01:35:49 +03:00
parent 4f42e9659e
commit 0f2b8dbf6f
3 changed files with 3 additions and 16 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ void osd_t::init_primary()
}
if (autosync_interval > 0)
{
this->sync_tfd = new timerfd_interval(ringloop, autosync_interval, [this]()
this->tfd->set_timer(autosync_interval*1000, true, [this](int timer_id)
{
autosync();
});