BloombergLP::bdlmt::Throttle_InitHelper

[PRIVATE]This component private meta-function is used to implement the initialization macros. This type provides the following: * Ensures arguments are evaluated at compile time (which won't be the case for floating point arguments) * Enables compile time checks with BSLMF_ASSERT * Handles special cases if 0 is passed for t_MAX_SIMULTANEOUS_ACTIONS or t_NANOSECONDS_PER_ACTION

Synopsis

Declared in <bdlmt_throttle.h>

template<
    int t_MAX_SIMULTANEOUS_ACTIONS,
    bsls::Types::Int64 t_NANOSECONDS_PER_ACTION>
class Throttle_InitHelper;

Static Data Members

NameDescription
k_msaValue Compile-time maximum simultaneous actions value for initialization macros.
k_npaValue Compile-time nanoseconds-per-action value for initialization macros.