Construct an event scheduler with the given dispatcher and clock.
Synopsis
Declared in <bdlmt_timereventscheduler.h>
explicit
TimerEventScheduler(
Dispatcher const& dispatcherFunctor,
bsls::SystemClockType::Enum clockType,
bslma::Allocator* basicAllocator = 0);
Description
Construct an event scheduler using the specified dispatcherFunctor (see "The dispatcher thread and the dispatcher functor" section in component‐level doc) and use the specified clockType to indicate the epoch used for all time intervals (see []Clock‐Types)). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. Note that the maximal number of scheduled non‐recurring events and recurring events defaults to an implementation defined constant.
Parameters
Name |
Description |
dispatcherFunctor |
functor that runs dispatched callbacks |
clockType |
clock used for time intervals |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs