|
SObjectizer
5.8
|
A hint for a dispatcher for execution of event for the concrete execution_demand. More...
#include <execution_demand.hpp>
Public Types | |
| using | direct_func_t |
| Type of function for calling event handler directly. | |
Public Member Functions | |
| execution_hint_t (execution_demand_t &demand, direct_func_t direct_func, thread_safety_t thread_safety) | |
| Initializing constructor. | |
| void | exec (current_thread_id_t working_thread_id) const |
| Call event handler directly. | |
| bool | is_thread_safe () const |
| Is thread safe handler? | |
Static Public Member Functions | |
| static execution_hint_t | create_empty_execution_hint (execution_demand_t &demand) |
Private Member Functions | |
| execution_hint_t (execution_demand_t &demand) | |
Private Attributes | |
| execution_demand_t & | m_demand |
| A reference to demand for which that hint has been created. | |
| direct_func_t | m_direct_func |
| Function for call event handler directly. | |
| thread_safety_t | m_thread_safety |
| Thread safety for event handler. | |
A hint for a dispatcher for execution of event for the concrete execution_demand.
An instance of execution hint can be in two "states":
Definition at line 129 of file execution_demand.hpp.
Type of function for calling event handler directly.
Definition at line 133 of file execution_demand.hpp.
|
inline |
Initializing constructor.
Definition at line 137 of file execution_demand.hpp.
|
inlineprivate |
A special constructor for the case when there is no handler for message.
Definition at line 191 of file execution_demand.hpp.
|
inlinestatic |
Create execution_hint object for the case when event handler not found.
This hint is necessary only for decrementing the counter of messages if message limit is used for the message to be processed.
Definition at line 174 of file execution_demand.hpp.
|
inline |
Call event handler directly.
Definition at line 148 of file execution_demand.hpp.
|
inline |
Is thread safe handler?
Definition at line 162 of file execution_demand.hpp.
|
private |
A reference to demand for which that hint has been created.
Definition at line 181 of file execution_demand.hpp.
|
private |
Function for call event handler directly.
Definition at line 184 of file execution_demand.hpp.
|
private |
Thread safety for event handler.
Definition at line 187 of file execution_demand.hpp.