Constructors
Synopses
Declared in <bdlmt_timereventscheduler.h>
Construct an event scheduler with the default dispatcher and realtime clock.
explicit
TimerEventScheduler(bslma::Allocator* basicAllocator = 0);
Construct an event scheduler with the default dispatcher and the given clock.
explicit
TimerEventScheduler(
bsls::SystemClockType::Enum clockType,
bslma::Allocator* basicAllocator = 0);
Construct an event scheduler with the given dispatcher and realtime clock.
explicit
TimerEventScheduler(
Dispatcher const& dispatcherFunctor,
bslma::Allocator* basicAllocator = 0);
Construct a scheduler with event capacity, default dispatcher, and realtime clock.
TimerEventScheduler(
int numEvents,
int numClocks,
bslma::Allocator* basicAllocator = 0);
Construct an event scheduler with the given dispatcher and clock.
explicit
TimerEventScheduler(
Dispatcher const& dispatcherFunctor,
bsls::SystemClockType::Enum clockType,
bslma::Allocator* basicAllocator = 0);
Construct a named event scheduler with the default dispatcher and realtime clock.
explicit
TimerEventScheduler(
std::string_view const& eventSchedulerName,
bdlm::MetricsRegistry* metricsRegistry,
bslma::Allocator* basicAllocator = 0);
Construct a named event scheduler with the default dispatcher and given clock.
explicit
TimerEventScheduler(
bsls::SystemClockType::Enum clockType,
std::string_view const& eventSchedulerName,
bdlm::MetricsRegistry* metricsRegistry,
bslma::Allocator* basicAllocator = 0);
Construct a scheduler with event capacity, default dispatcher, and the given clock.
TimerEventScheduler(
int numEvents,
int numClocks,
bsls::SystemClockType::Enum clockType,
bslma::Allocator* basicAllocator = 0);
Construct a scheduler with event capacity, the given dispatcher, and realtime clock.
TimerEventScheduler(
int numEvents,
int numClocks,
Dispatcher const& dispatcherFunctor,
bslma::Allocator* basicAllocator = 0);
Construct a named event scheduler with the given dispatcher and realtime clock.
explicit
TimerEventScheduler(
Dispatcher const& dispatcherFunctor,
std::string_view const& eventSchedulerName,
bdlm::MetricsRegistry* metricsRegistry,
bslma::Allocator* basicAllocator = 0);
Construct a scheduler with event capacity, the given dispatcher, and clock.
TimerEventScheduler(
int numEvents,
int numClocks,
Dispatcher const& dispatcherFunctor,
bsls::SystemClockType::Enum clockType,
bslma::Allocator* basicAllocator = 0);
Construct a named scheduler with event capacity, default dispatcher, and realtime clock.
TimerEventScheduler(
int numEvents,
int numClocks,
std::string_view const& eventSchedulerName,
bdlm::MetricsRegistry* metricsRegistry,
bslma::Allocator* basicAllocator = 0);
Construct a named event scheduler with the given dispatcher and clock.
explicit
TimerEventScheduler(
Dispatcher const& dispatcherFunctor,
bsls::SystemClockType::Enum clockType,
std::string_view const& eventSchedulerName,
bdlm::MetricsRegistry* metricsRegistry,
bslma::Allocator* basicAllocator = 0);
Construct a named scheduler with event capacity, default dispatcher, and given clock.
TimerEventScheduler(
int numEvents,
int numClocks,
bsls::SystemClockType::Enum clockType,
std::string_view const& eventSchedulerName,
bdlm::MetricsRegistry* metricsRegistry,
bslma::Allocator* basicAllocator = 0);
Construct a named scheduler with event capacity, the given dispatcher, and realtime clock.
TimerEventScheduler(
int numEvents,
int numClocks,
Dispatcher const& dispatcherFunctor,
std::string_view const& eventSchedulerName,
bdlm::MetricsRegistry* metricsRegistry,
bslma::Allocator* basicAllocator = 0);
Construct a named scheduler with event capacity, the given dispatcher, and clock.
TimerEventScheduler(
int numEvents,
int numClocks,
Dispatcher const& dispatcherFunctor,
bsls::SystemClockType::Enum clockType,
std::string_view const& eventSchedulerName,
bdlm::MetricsRegistry* metricsRegistry,
bslma::Allocator* basicAllocator = 0);
Parameters
Name |
Description |
basicAllocator |
memory allocator; null uses the default |
clockType |
clock used for time intervals |
dispatcherFunctor |
functor that runs dispatched callbacks |
numEvents |
minimum concurrent one‐shot events supported |
numClocks |
minimum concurrent clocks supported |
eventSchedulerName |
name identifying this scheduler |
metricsRegistry |
metrics registry, or singleton if 0 |
Created with MrDocs