BloombergLP::bdlmt::EventScheduler::scheduleEventRaw

Schedule callback and load a raw cancel handle into event.

Synopsis

Declared in <bdlmt_eventscheduler.h>

template<
    class t_CLOCK,
    class t_DURATION>
void
scheduleEventRaw(
    Event** event,
    bsl::chrono::time_point<t_CLOCK, t_DURATION> const& epochTime,
    bsl::function<void()> const& callback);

Description

Schedule the specified callback to be dispatched at the specified epochTime truncated to microseconds. Load into the specified event pointer a handle that can be used to cancel the event (by invoking cancelEvent). The epochTime is an absolute time represented as an interval from some epoch, which is determined by the clock associated with the time point. The event pointer must be released invoking releaseEventRaw when it is no longer needed.

Parameters

NameDescription
eventreceives a raw handle that can cancel the event
epochTimeabsolute time at which to dispatch the callback
callbackfunction invoked when the event is dispatched