SObjectizer  5.8
Loading...
Searching...
No Matches
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.
 
 control_block_t (const control_block_t &o)
 Copy constructor.
 
control_block_toperator= (const control_block_t &o)
 Copy operator.
 

Static Public Member Functions

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

Public Attributes

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

Detailed Description

A control block for one message limit.

Since
v.5.5.4

Definition at line 975 of file message.hpp.

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.

Definition at line 987 of file message.hpp.

◆ control_block_t() [2/2]

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

Copy constructor.

Definition at line 997 of file message.hpp.

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.

Definition at line 1028 of file message.hpp.

◆ none()

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

A special indicator about absence of control_block.

Definition at line 1023 of file message.hpp.

◆ operator=()

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

Copy operator.

Definition at line 1009 of file message.hpp.

Member Data Documentation

◆ m_action

action_t so_5::message_limit::control_block_t::m_action

Limit overflow reaction.

Definition at line 984 of file message.hpp.

◆ m_count

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

The current count of the messages of that type.

Definition at line 981 of file message.hpp.

◆ m_limit

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

Limit value.

Definition at line 978 of file message.hpp.


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