BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlmt::Throttle_InitHelper< t_MAX_SIMULTANEOUS_ACTIONS, t_NANOSECONDS_PER_ACTION > Class Template Reference

#include <bdlmt_throttle.h>

Static Public Attributes

static const bsls::Types::Int64 k_npaValue
 
static const int k_msaValue
 

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 bdlmt_throttle

Member Data Documentation

◆ k_msaValue

template<int t_MAX_SIMULTANEOUS_ACTIONS, bsls::Types::Int64 t_NANOSECONDS_PER_ACTION>
const int bdlmt::Throttle_InitHelper< t_MAX_SIMULTANEOUS_ACTIONS, t_NANOSECONDS_PER_ACTION >::k_msaValue
static
Initial value:
= 0 == t_NANOSECONDS_PER_ACTION
? INT_MAX
: t_MAX_SIMULTANEOUS_ACTIONS

◆ k_npaValue

template<int t_MAX_SIMULTANEOUS_ACTIONS, bsls::Types::Int64 t_NANOSECONDS_PER_ACTION>
const bsls::Types::Int64 bdlmt::Throttle_InitHelper< t_MAX_SIMULTANEOUS_ACTIONS, t_NANOSECONDS_PER_ACTION >::k_npaValue
static
Initial value:
=
0 == t_MAX_SIMULTANEOUS_ACTIONS ? Throttle::k_ALLOW_NONE
: t_NANOSECONDS_PER_ACTION ? t_NANOSECONDS_PER_ACTION
: Throttle::k_ALLOW_ALL

The documentation for this class was generated from the following file: