#include <bdlmt_throttle.h>
List of all members.
Detailed Description
template<int t_MAX_SIMULTANEOUS_ACTIONS, bsls::Types::Int64 t_NANOSECONDS_PER_ACTION>
class bdlmt::Throttle_InitHelper< t_MAX_SIMULTANEOUS_ACTIONS, t_NANOSECONDS_PER_ACTION >
[!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'
See Component bdlmt_throttle
Member Data Documentation
template<int t_MAX_SIMULTANEOUS_ACTIONS, bsls::Types::Int64 t_NANOSECONDS_PER_ACTION>
Initial value:
0 == t_MAX_SIMULTANEOUS_ACTIONS ? Throttle::k_ALLOW_NONE
: t_NANOSECONDS_PER_ACTION ? t_NANOSECONDS_PER_ACTION
: Throttle::k_ALLOW_ALL
template<int t_MAX_SIMULTANEOUS_ACTIONS, bsls::Types::Int64 t_NANOSECONDS_PER_ACTION>
Initial value: 0 == t_NANOSECONDS_PER_ACTION
? INT_MAX
: t_MAX_SIMULTANEOUS_ACTIONS
The documentation for this class was generated from the following file: