BloombergLP::bdlmt::TimerEventScheduler::rescheduleEvent

rescheduleEvent overloads

Synopses

Declared in <bdlmt_timereventscheduler.h>

Reschedule the event having the specified handle at the specified newTime. Optionally use the specified key to uniquely identify the event. If the optionally specified wait is true, then ensure that the event having the handle (if it is valid) is either successfully rescheduled or dispatched before the call returns. Return 0 on successful reschedule, and a non-zero value if the handle is invalid or if the event has already been dispatched or if the event has not yet been dispatched but will soon be dispatched. If this method is being invoked from the dispatcher thread then the wait is ignored to avoid deadlock. The newTime is an absolute time represented as an interval from some epoch, which is detemined by the clock indicated at construction (see []Clock-Types)).

int
rescheduleEvent(
    Handle handle,
    bsls::TimeInterval const& newTime,
    bool wait = false);
» more...

Same as the preceding overload, with the specified key.

int
rescheduleEvent(
    Handle handle,
    EventKey const& key,
    bsls::TimeInterval const& newTime,
    bool wait = false);
» more...