initialize overloads
Declared in <bdlmt_throttle.h>
Initialize this throttle with the specified rate and burst limits.
void
initialize(
int maxSimultaneousActions,
Int64 nanosecondsPerAction,
bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_MONOTONIC);
» more...
Initialize this throttle using the monotonic clock and specified limits.
void
initialize(
int maxSimultaneousActions,
Int64 nanosecondsPerAction,
std::chrono::steady_clock const& clock);
» more...
Initialize this throttle using the realtime clock and specified limits.
void
initialize(
int maxSimultaneousActions,
Int64 nanosecondsPerAction,
std::chrono::system_clock const& clock);
» more...
| Name | Description |
|---|---|
| maxSimultaneousActions | maximum actions allowed at one time |
| nanosecondsPerAction | minimum average period between actions |
| clockType | system clock used to measure time |
| clock | unused; selects the monotonic system clock |