Exemple #1
0
TimerId Evloop::runEvery(double secs , AlarmCallback&& acb)
{
    TimePoint tp = TimePoint::now();
    tp.addSeconds(secs);
    return timerQueue_->addTimer(tp , std::move(acb) , secs);
}
Exemple #2
0
TimerId Evloop::runEvery(double secs , const AlarmCallback& acb)
{
    TimePoint tp = TimePoint::now();
    tp.addSeconds(secs);
    return timerQueue_->addTimer(tp , acb , secs);
}