BloombergLP::bdlmt::EventScheduler::scheduleRecurringEventRaw

Schedule a recurring event and load a raw cancel handle into event.

Synopses

Declared in <bdlmt_eventscheduler.h>

Schedule a recurring event and load a raw cancel handle into event.

void
scheduleRecurringEventRaw(
    RecurringEvent** event,
    bsls::TimeInterval const& interval,
    bsl::function<void()> const& callback,
    bsls::TimeInterval const& startEpochTime = bsls::TimeInterval(0));
» more...

Schedule a recurring event and load a raw cancel handle into event.

template<
    class t_CLOCK,
    class t_REP_TYPE,
    class t_PERIOD_TYPE,
    class t_DURATION>
void
scheduleRecurringEventRaw(
    RecurringEvent** event,
    bsl::chrono::duration<t_REP_TYPE, t_PERIOD_TYPE> const& interval,
    bsl::function<void()> const& callback,
    bsl::chrono::time_point<t_CLOCK, t_DURATION> const& startEpochTime = t_CLOCK::now());
» more...

Parameters

NameDescription
eventreceives a raw handle that can cancel the event
intervalperiod between recurring dispatches
callbackfunction invoked when the event is dispatched
startEpochTimeabsolute time of the first dispatch