SObjectizer
5.5
|
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_t & | operator= (const control_block_t &o) |
Copy operator. More... | |
Static Public Member Functions | |
static const control_block_t * | none () |
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... | |
A control block for one message limit.
|
inline |
Initializing constructor.
|
inline |
Copy constructor.
|
inlinestatic |
A safe decrement of message count with respect to absence of limit for a message.
|
inlinestatic |
A special indicator about absence of control_block.
|
inline |
Copy operator.
action_t so_5::message_limit::control_block_t::m_action |
Limit overflow reaction.
|
mutable |
The current count of the messages of that type.
unsigned int so_5::message_limit::control_block_t::m_limit |
Limit value.