[#BloombergLP-bdlmt-TimerEventScheduler-2constructor-0e02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/TimerEventScheduler.adoc[TimerEventScheduler]::TimerEventScheduler
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Construct an event scheduler with the default dispatcher and realtime clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-01.adoc[TimerEventScheduler](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-01.adoc[_» more&period;&period;&period;_]#

Construct an event scheduler with the default dispatcher and the given clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0e0c.adoc[TimerEventScheduler](
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0e0c.adoc[_» more&period;&period;&period;_]#

Construct an event scheduler with the given dispatcher and realtime clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0e2.adoc[TimerEventScheduler](
    xref:BloombergLP/bdlmt/TimerEventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0e2.adoc[_» more&period;&period;&period;_]#

Construct a scheduler with event capacity, default dispatcher, and realtime clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-04.adoc[TimerEventScheduler](
    int numEvents,
    int numClocks,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-04.adoc[_» more&period;&period;&period;_]#

Construct an event scheduler with the given dispatcher and clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0ee.adoc[TimerEventScheduler](
    xref:BloombergLP/bdlmt/TimerEventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0ee.adoc[_» more&period;&period;&period;_]#

Construct a named event scheduler with the default dispatcher and realtime clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-009.adoc[TimerEventScheduler](
    std::string&lowbar;view const& eventSchedulerName,
    xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-009.adoc[_» more&period;&period;&period;_]#

Construct a named event scheduler with the default dispatcher and given clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0b4.adoc[TimerEventScheduler](
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    std::string&lowbar;view const& eventSchedulerName,
    xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0b4.adoc[_» more&period;&period;&period;_]#

Construct a scheduler with event capacity, default dispatcher, and the given clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0c.adoc[TimerEventScheduler](
    int numEvents,
    int numClocks,
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0c.adoc[_» more&period;&period;&period;_]#

Construct a scheduler with event capacity, the given dispatcher, and realtime clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0bd.adoc[TimerEventScheduler](
    int numEvents,
    int numClocks,
    xref:BloombergLP/bdlmt/TimerEventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0bd.adoc[_» more&period;&period;&period;_]#

Construct a named event scheduler with the given dispatcher and realtime clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0a5.adoc[TimerEventScheduler](
    xref:BloombergLP/bdlmt/TimerEventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    std::string&lowbar;view const& eventSchedulerName,
    xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0a5.adoc[_» more&period;&period;&period;_]#

Construct a scheduler with event capacity, the given dispatcher, and clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0d.adoc[TimerEventScheduler](
    int numEvents,
    int numClocks,
    xref:BloombergLP/bdlmt/TimerEventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Construct a named scheduler with event capacity, default dispatcher, and realtime clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0f.adoc[TimerEventScheduler](
    int numEvents,
    int numClocks,
    std::string&lowbar;view const& eventSchedulerName,
    xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Construct a named event scheduler with the given dispatcher and clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-03.adoc[TimerEventScheduler](
    xref:BloombergLP/bdlmt/TimerEventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    std::string&lowbar;view const& eventSchedulerName,
    xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-03.adoc[_» more&period;&period;&period;_]#

Construct a named scheduler with event capacity, default dispatcher, and given clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-006.adoc[TimerEventScheduler](
    int numEvents,
    int numClocks,
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    std::string&lowbar;view const& eventSchedulerName,
    xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-006.adoc[_» more&period;&period;&period;_]#

Construct a named scheduler with event capacity, the given dispatcher, and realtime clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0be.adoc[TimerEventScheduler](
    int numEvents,
    int numClocks,
    xref:BloombergLP/bdlmt/TimerEventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    std::string&lowbar;view const& eventSchedulerName,
    xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0be.adoc[_» more&period;&period;&period;_]#

Construct a named scheduler with event capacity, the given dispatcher, and clock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0a6.adoc[TimerEventScheduler](
    int numEvents,
    int numClocks,
    xref:BloombergLP/bdlmt/TimerEventScheduler/Dispatcher.adoc[Dispatcher] const& dispatcherFunctor,
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType,
    std::string&lowbar;view const& eventSchedulerName,
    xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/2constructor-0a6.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; null uses the default
| *clockType*
| clock used for time intervals
| *dispatcherFunctor*
| functor that runs dispatched callbacks
| *numEvents*
| minimum concurrent one&hyphen;shot events supported
| *numClocks*
| minimum concurrent clocks supported
| *eventSchedulerName*
| name identifying this scheduler
| *metricsRegistry*
| metrics registry, or singleton if 0
|===


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