9 #include "tools/ToolsConfig.h"
10 #include "tools/OrderedMutex.h"
23 Throttle(
const char *name,
double seconds_between_messages);
Throttle(const char *name, double seconds_between_messages)
Create throttle with the given name and threshold.
A mutex with informational name and lock order.
Definition: OrderedMutex.h:34
void reset()
Reset the throttle so that isPermitted will return 'true'.
Timer for throttling messages, thread safe.
Definition: Throttle.h:19
void fire()
Fire the throttle so that isPermitted will return 'false' until the threshold is exceeded.
double getThrottleThreshold()
Definition: Throttle.h:40