Create a test time‐source that controls scheduler's clock.

Synopsis

Declared in <bdlmt_eventscheduler.h>

explicit
EventSchedulerTestTimeSource(
    EventScheduler* scheduler,
    bslma::Allocator* basicAllocator = 0);

Description

Create a test time‐source object that will control the "system‐time" observed by the specified scheduler. Initialize now to be an arbitrary time value. The behavior is undefined if any methods have previously been called on scheduler. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless the supplied allocator also outlives the EventScheduler associated with this time source.

Parameters

Name

Description

scheduler

event scheduler whose clock is controlled

basicAllocator

allocator used to supply memory

Created with MrDocs