MySQL 8.0.40
Source Code Documentation
net::poll_io_service::FdInterests Class Reference

#include <poll_io_service.h>

Public Types

using element_type = fd_event
 
using container_type = std::vector< element_type >
 

Public Member Functions

void push_back (element_type &&t)
 
stdx::expected< void, std::error_code > erase_all (native_handle_type fd)
 
std::vector< pollfdpoll_fds () const
 
stdx::expected< void, std::error_code > erase_fd_event (native_handle_type fd, short event)
 
std::optional< int32_t > interest (native_handle_type fd) const
 

Private Member Functions

container_typebucket (native_handle_type fd)
 
const container_typebucket (native_handle_type fd) const
 

Private Attributes

std::mutex mtx_
 
std::array< container_type, bucket_count_buckets_
 

Static Private Attributes

static constexpr const size_t bucket_count_ {101}
 

Member Typedef Documentation

◆ container_type

◆ element_type

Member Function Documentation

◆ bucket() [1/2]

container_type & net::poll_io_service::FdInterests::bucket ( native_handle_type  fd)
inlineprivate

◆ bucket() [2/2]

const container_type & net::poll_io_service::FdInterests::bucket ( native_handle_type  fd) const
inlineprivate

◆ erase_all()

stdx::expected< void, std::error_code > net::poll_io_service::FdInterests::erase_all ( native_handle_type  fd)
inline

◆ erase_fd_event()

stdx::expected< void, std::error_code > net::poll_io_service::FdInterests::erase_fd_event ( native_handle_type  fd,
short  event 
)
inline

◆ interest()

std::optional< int32_t > net::poll_io_service::FdInterests::interest ( native_handle_type  fd) const
inline

◆ poll_fds()

std::vector< pollfd > net::poll_io_service::FdInterests::poll_fds ( ) const
inline

◆ push_back()

void net::poll_io_service::FdInterests::push_back ( element_type &&  t)
inline

Member Data Documentation

◆ bucket_count_

constexpr const size_t net::poll_io_service::FdInterests::bucket_count_ {101}
staticconstexprprivate

◆ buckets_

std::array<container_type, bucket_count_> net::poll_io_service::FdInterests::buckets_
private

◆ mtx_

std::mutex net::poll_io_service::FdInterests::mtx_
mutableprivate

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