MySQL 9.0.0
Source Code Documentation
net::io_context::AsyncOps Class Reference

Public Types

using element_type = std::unique_ptr< async_op >
 

Public Member Functions

bool has_outstanding_work () const
 
void push_back (element_type &&t)
 
element_type extract_first (native_handle_type fd, short events)
 
element_type extract_first (native_handle_type fd)
 
void release_all ()
 

Private Member Functions

template<class Pred >
element_type extract_first (native_handle_type fd, Pred &&pred)
 

Private Attributes

std::unordered_map< native_handle_type, std::vector< element_type > > ops_
 
std::mutex mtx_
 

Member Typedef Documentation

◆ element_type

Member Function Documentation

◆ extract_first() [1/3]

element_type net::io_context::AsyncOps::extract_first ( native_handle_type  fd)
inline

◆ extract_first() [2/3]

template<class Pred >
element_type net::io_context::AsyncOps::extract_first ( native_handle_type  fd,
Pred &&  pred 
)
inlineprivate

◆ extract_first() [3/3]

element_type net::io_context::AsyncOps::extract_first ( native_handle_type  fd,
short  events 
)
inline

◆ has_outstanding_work()

bool net::io_context::AsyncOps::has_outstanding_work ( ) const
inline

◆ push_back()

void net::io_context::AsyncOps::push_back ( element_type &&  t)
inline

◆ release_all()

void net::io_context::AsyncOps::release_all ( )
inline

Member Data Documentation

◆ mtx_

std::mutex net::io_context::AsyncOps::mtx_
mutableprivate

◆ ops_

std::unordered_map<native_handle_type, std::vector<element_type> > net::io_context::AsyncOps::ops_
private
Initial value:
{
16 * 1024}

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