Construct a scheduler with event capacity, default dispatcher, and realtime clock.

Synopsis

Declared in <bdlmt_timereventscheduler.h>

TimerEventScheduler(
    int numEvents,
    int numClocks,
    bslma::Allocator* basicAllocator = 0);

Description

Construct a timer event scheduler using the default dispatcher functor (see the "The dispatcher thread and the dispatcher functor" section in component level doc) that has the capability to concurrently schedule at least the specified numEvents and numClocks and use the realtime clock epoch 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. The behavior is undefined unless 0 <= numEvents < 2**24 and 0 <= numClocks < 2**24.

Parameters

Name

Description

numEvents

minimum concurrent one‐shot events supported

numClocks

minimum concurrent clocks supported

basicAllocator

memory allocator; null uses the default

Created with MrDocs