26#ifndef ROUTER_IO_THREAD_INCLUDED
27#define ROUTER_IO_THREAD_INCLUDED
43 const std::string &backend_name =
"poll", std::string
name = {})
59 void stop() { io_ctx_.stop(); }
62 if (thr_.joinable()) thr_.join();
Definition: io_backend.h:36
Definition: io_thread.h:40
net::io_context io_ctx_
Definition: io_thread.h:73
void join()
Definition: io_thread.h:61
std::bitset< ThreadAffinity::max_cpus > cpu_affinity_
Definition: io_thread.h:71
std::bitset< ThreadAffinity::max_cpus > cpu_affinity() const
Definition: io_thread.h:65
std::string name_
Definition: io_thread.h:70
~IoThread()
Definition: io_thread.h:50
net::io_context & context() noexcept
Definition: io_thread.h:55
IoThread(size_t ndx, std::bitset< ThreadAffinity::max_cpus > cpu_affinity, const std::string &backend_name="poll", std::string name={})
Definition: io_thread.h:42
void stop()
Definition: io_thread.h:59
std::thread thr_
Definition: io_thread.h:75
Definition: io_context.h:61
static std::string to_string(const LEX_STRING &str)
Definition: lex_string.h:50
Definition: http_server_component.cc:36
Unique_ptr< T, std::nullptr_t > make_unique(size_t size)
In-place constructs a new unique pointer with no specific allocator and with array type T.
std::string join(const detail::range auto &rng, std::string_view delim)
join elements of a range into a string separated by a delimiter.
Definition: string.h:74
stdx::expected< native_handle_type, error_type > socket(int family, int sock_type, int protocol)
Definition: socket.h:63
Definition: gcs_xcom_synode.h:64
case opt name
Definition: sslopt-case.h:29