SObjectizer  5.5
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
so_5::message_limit::control_block_t Struct Reference

A control block for one message limit. More...

#include <message.hpp>

Public Member Functions

 control_block_t (unsigned int limit, action_t action)
 Initializing constructor. More...
 
 control_block_t (const control_block_t &o)
 Copy constructor. More...
 
control_block_toperator= (const control_block_t &o)
 Copy operator. More...
 

Static Public Member Functions

static const control_block_tnone ()
 A special indicator about absence of control_block. More...
 
static void decrement (const control_block_t *limit)
 

Public Attributes

unsigned int m_limit
 Limit value. More...
 
std::atomic_uint m_count
 The current count of the messages of that type. More...
 
action_t m_action
 Limit overflow reaction. More...
 

Detailed Description

A control block for one message limit.

Since
v.5.5.4

Constructor & Destructor Documentation

◆ control_block_t() [1/2]

so_5::message_limit::control_block_t::control_block_t ( unsigned int  limit,
action_t  action 
)
inline

Initializing constructor.

◆ control_block_t() [2/2]

so_5::message_limit::control_block_t::control_block_t ( const control_block_t o)
inline

Copy constructor.

Member Function Documentation

◆ decrement()

static void so_5::message_limit::control_block_t::decrement ( const control_block_t limit)
inlinestatic

A safe decrement of message count with respect to absence of limit for a message.

◆ none()

static const control_block_t* so_5::message_limit::control_block_t::none ( )
inlinestatic

A special indicator about absence of control_block.

◆ operator=()

control_block_t& so_5::message_limit::control_block_t::operator= ( const control_block_t o)
inline

Copy operator.

Member Data Documentation

◆ m_action

action_t so_5::message_limit::control_block_t::m_action

Limit overflow reaction.

◆ m_count

std::atomic_uint so_5::message_limit::control_block_t::m_count
mutable

The current count of the messages of that type.

◆ m_limit

unsigned int so_5::message_limit::control_block_t::m_limit

Limit value.


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