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));
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());
Parameters
Name |
Description |
event |
receives a raw handle that can cancel the event |
interval |
period between recurring dispatches |
callback |
function invoked when the event is dispatched |
startEpochTime |
absolute time of the first dispatch |
Created with MrDocs