[#BloombergLP-bdlmt-EventScheduler-2constructor-019]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/EventScheduler.adoc[EventScheduler]::EventScheduler
:relfileprefix: ../../../
:mrdocs:

Create an event scheduler using `dispatcherFunctor`&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;eventscheduler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
EventScheduler(
    xref:BloombergLP/bdlmt/EventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    std::chrono::system&lowbar;clock const& systemClock,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create an event scheduler using the specified `dispatcherFunctor` (see &lcub;The Dispatcher Thread and the Dispatcher Functor&rcub; in the component&hyphen;level documentation) and using the system realtime clock to indicate the epoch used for all time intervals&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dispatcherFunctor*
| dispatcher callback
| *systemClock*
| tag selecting the system realtime clock
| *basicAllocator*
| allocator used to supply memory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
