26#ifndef ROUTER_IO_THREAD_INCLUDED
27#define ROUTER_IO_THREAD_INCLUDED
42 const std::string &backend_name =
"poll")
Definition: io_backend.h:36
Definition: io_thread.h:39
size_t ndx_
Definition: io_thread.h:69
net::io_context io_ctx_
Definition: io_thread.h:72
IoThread(size_t ndx, std::bitset< ThreadAffinity::max_cpus > cpu_affinity, const std::string &backend_name="poll")
Definition: io_thread.h:41
void operator()()
Definition: io_thread.cc:38
void join()
Definition: io_thread.h:60
std::bitset< ThreadAffinity::max_cpus > cpu_affinity_
Definition: io_thread.h:70
std::bitset< ThreadAffinity::max_cpus > cpu_affinity() const
Definition: io_thread.h:64
~IoThread()
Definition: io_thread.h:49
net::io_context & context() noexcept
Definition: io_thread.h:54
void stop()
Definition: io_thread.h:58
std::thread thr_
Definition: io_thread.h:74
Definition: io_context.h:61
void stop()
Definition: io_context.h:116
Definition: authentication.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.
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