26#ifndef ROUTER_IO_COMPONENT_INCLUDED
27#define ROUTER_IO_COMPONENT_INCLUDED
48 std::list<IoThread> &
io_threads() {
return io_threads_; }
71 const std::string &backend_name);
110 if (--io_comp_.users_ == 0) {
129 std::atomic<int> users_{};
static mysql_service_status_t init()
Component initialization.
Definition: audit_api_message_emit.cc:571
Definition: io_component.h:96
IoComponent & io_comp_
Definition: io_component.h:116
Workguard(IoComponent &io_comp)
Definition: io_component.h:98
Workguard & operator=(Workguard &&)=delete
Workguard(const Workguard &)=delete
Workguard & operator=(const Workguard &)=delete
Workguard(Workguard &&)=delete
~Workguard()
Definition: io_component.h:109
net::executor_work_guard< net::io_context::executor_type > io_ctx_work_guard_
Definition: io_component.h:117
Definition: io_component.h:46
std::unique_ptr< net::io_context > io_ctx_
Definition: io_component.h:127
std::list< IoThread > & io_threads()
Definition: io_component.h:48
std::string backend_name() const
Definition: io_component.h:94
std::string backend_name_
Definition: io_component.h:131
std::list< IoThread > io_threads_
Definition: io_component.h:125
Definition: executor.h:469
Definition: io_context.h:61
Definition: expected.h:944
IoComponentErrc
Definition: io_component.h:39
IO_COMPONENT_EXPORT std::error_code make_error_code(IoComponentErrc ec)
Definition: io_component.cc:54
#define IO_COMPONENT_EXPORT
Definition: io_component_export.h:15
static void run(mysql_harness::PluginFuncEnv *)
Definition: io_plugin.cc:195
std::string HARNESS_EXPORT reset()
get 'reset attributes' ESC sequence.
Definition: vt100.cc:37
std::enable_if_t< is_executor< Executor >::value, executor_work_guard< Executor > > make_work_guard(const Executor &ex)
Definition: executor.h:524