wx supervisor config, which holds a pointer to the "context window". More...
#include <supervisor_config_wx.h>
Public Attributes | |
wxEvtHandler * | handler |
the wx context, responsible for messages delivery | |
Public Attributes inherited from rotor::supervisor_config_t | |
supervisor_policy_t | policy = supervisor_policy_t::shutdown_self |
how to behave if child-actor fails | |
bool | create_registry = false |
whether the registry actor should be instantiated by supervisor | |
bool | synchronize_start = false |
whether supervisor should wait until all actors confirmed initialization, and only then send start signal to all of them | |
address_ptr_t | registry_address |
use the specified address of a registry | |
size_t | inbound_queue_size = 64 |
initial queue size for inbound messages. Makes sense only for root/leader supervisor | |
pt::time_duration | poll_duration = pt::millisec{1} |
How much time it will spend in polling inbound queue before switching into sleep mode (i.e. waiting external messages). | |
const std::atomic_bool * | shutdown_flag = nullptr |
pointer to atomic shutdown flag for polling (optional) | |
pt::time_duration | shutdown_poll_frequency = pt::millisec{100} |
the period for checking atomic shutdown flag | |
Public Attributes inherited from rotor::actor_config_t | |
plugins_constructor_t | plugins_constructor |
constructs plugin_storage_ptr_t | |
supervisor_t * | supervisor |
raw pointer to supervisor_t | |
pt::time_duration | init_timeout |
max actor initialization time | |
pt::time_duration | shutdown_timeout |
max actor shutdown time | |
address_ptr_t | spawner_address |
address of the spawner | |
bool | escalate_failure = false |
shutdown supervisor upon child failure | |
bool | autoshutdown_supervisor = false |
shutdown supervisor upon child down | |
Additional Inherited Members | |
Public Types inherited from rotor::actor_config_t | |
using | plugins_constructor_t = std::function< plugin_storage_ptr_t()> |
constructs plugin_storage_ptr_t (type) | |
Public Member Functions inherited from rotor::supervisor_config_t | |
actor_config_t (supervisor_t *supervisor_) | |
constructs actor_config_t from raw supervisor pointer | |
Public Member Functions inherited from rotor::actor_config_t | |
actor_config_t (supervisor_t *supervisor_) | |
constructs actor_config_t from raw supervisor pointer | |
wx supervisor config, which holds a pointer to the "context window".
wxEvtHandler* rotor::wx::supervisor_config_wx_t::handler |
the wx context, responsible for messages delivery
Actual rotor-message delivery for actors running on the top of wx-loop is performed via wx-events, i.e. rotor-messages are wrapped into wx-events.
The wx-supervisor subscribes to the wx-events
and unwraps the rotor-messages from the events.
The wx event handler is used as a transport medium.