Reschedule the event referred to by handle to newEpochTime.
Synopsis
Declared in <bdlmt_eventscheduler.h>
template<
class t_CLOCK,
class t_DURATION>
int
rescheduleEvent(
Event const* handle,
bsl::chrono::time_point<t_CLOCK, t_DURATION> const& newEpochTime);
Description
Reschedule the event referred to by the specified handle at the specified newEpochTime truncated to microseconds. Return 0 on successful reschedule, and a non‐zero value if the handle is invalid or if the event has already been dispatched. The newEpochTime is an absolute time represented as an interval from some epoch, determined by the clock associated with the time point.
Return Value
0 on successful reschedule, and a non‐zero value otherwise
Parameters
Name |
Description |
handle |
event to reschedule |
newEpochTime |
new absolute time at which to dispatch the event |
Created with MrDocs