TimerEventScheduler [constructor] | Constructors |
~TimerEventScheduler [destructor] | Stop this scheduler, discard all the unprocessed events and destroy this object. |
cancelAllClocks | Cancel all clocks. If the optionally specified wait is true, then ensure that any clock event still in this scheduler is either cancelled or has been dispatched before this call returns. If this method is being invoked from the dispatcher thread, then the wait is ignored to avoid deadlock. |
cancelAllEvents | Cancel all the events. If the optionally specified wait is true, then ensure any event still in this scheduler is either cancelled or has been dispatched before this call returns. If this method is being invoked from the dispatcher thread then the wait is ignored to avoid deadlock. |
cancelClock | Cancel the clock having the specified handle. If the optionally specified wait is true, then ensure that any scheduled event for the clock having handle is either cancelled or has been dispatched before this call returns. Return 0 on success, and a non-zero value if the handle is invalid. If this method is being invoked from the dispatcher thread, then the wait is ignored to avoid deadlock. |
cancelEvent | cancelEvent overloads |
clockType | Return the value of the clock type that this object was created with. |
nextPendingEventTime | Return the earliest scheduled starting time of the pending events and clocks registered with this scheduler. If there are no pending events or clocks, return INT64_MAX microseconds. |
now | Return the current epoch time, an absolute time represented as an interval from some epoch, which is determined by the clock indicated at construction (see []Clock-Types)). |
numClocks | Return a snapshot of the number of registered clocks with this scheduler. |
numEvents | Return a snapshot of the number of pending events and events being dispatched in this scheduler. |
rescheduleEvent | rescheduleEvent overloads |
scheduleEvent | Schedule the specified callback to be dispatched at the specified time. On success, return a handle that can be used to cancel the callback (by invoking cancelEvent), or return e_INVALID_HANDLE if scheduling this event would exceed the maximum number of scheduled events for this object (see constructor). Optionally specify key to uniquely identify the event. The time is an absolute time represented as an interval from some epoch, which is detemined by the clock indicated at construction (see []Clock-Types)). |
start | start overloads |
startClock | Schedule a recurring event that invokes the specified callback at every specified interval, starting at the optionally specified startTime. On success, return a handle that can be use to cancel the clock (by invoking cancelClock), or return e_INVALID_HANDLE if scheduling this event would exceed the maximum number of scheduled events for this object (see constructor). If no start time is specified, it is assumed to be the interval time from now. The startTime is an absolute time represented as an interval from some epoch, which is detemined by the clock indicated at construction (see []Clock-Types)). |
stop | End the dispatching of events on this scheduler (but do not remove any pending events), and wait for any (one) currently executing event to complete. If the scheduler is already stopped then this method has no effect. This scheduler can be restarted by invoking start. The behavior is undefined if this method is invoked from the dispatcher thread. |
operator BloombergLP::bslmf::NestedTraitDeclaration<TimerEventScheduler, UsesBslmaAllocator> | Declare that this type uses a bslma allocator. |