MySQL 8.0.39
Source Code Documentation
IoThread Class Reference

#include <io_thread.h>

Public Member Functions

 IoThread (size_t ndx, std::bitset< ThreadAffinity::max_cpus > cpu_affinity, const std::string &backend_name="poll")
 
 ~IoThread ()
 
net::io_contextcontext () noexcept
 
void operator() ()
 
void stop ()
 
void join ()
 
std::bitset< ThreadAffinity::max_cpuscpu_affinity () const
 

Private Attributes

size_t ndx_
 
std::bitset< ThreadAffinity::max_cpuscpu_affinity_
 
net::io_context io_ctx_
 
std::thread thr_
 

Constructor & Destructor Documentation

◆ IoThread()

IoThread::IoThread ( size_t  ndx,
std::bitset< ThreadAffinity::max_cpus cpu_affinity,
const std::string &  backend_name = "poll" 
)
inline

◆ ~IoThread()

IoThread::~IoThread ( )
inline

Member Function Documentation

◆ context()

net::io_context & IoThread::context ( )
inlinenoexcept

◆ cpu_affinity()

std::bitset< ThreadAffinity::max_cpus > IoThread::cpu_affinity ( ) const
inline

◆ join()

void IoThread::join ( )
inline

◆ operator()()

void IoThread::operator() ( )

◆ stop()

void IoThread::stop ( )
inline

Member Data Documentation

◆ cpu_affinity_

std::bitset<ThreadAffinity::max_cpus> IoThread::cpu_affinity_
private

◆ io_ctx_

net::io_context IoThread::io_ctx_
private

◆ ndx_

size_t IoThread::ndx_
private

◆ thr_

std::thread IoThread::thr_
private

The documentation for this class was generated from the following files: