MySQL 9.0.0
Source Code Documentation
net::io_context::async_op Class Referenceabstract

base class of async operation. More...

Inheritance diagram for net::io_context::async_op:
[legend]

Public Types

using wait_type = impl::socket::wait_type
 

Public Member Functions

 async_op (native_handle_type fd, wait_type ev)
 
virtual ~async_op ()=default
 
virtual void run (io_context &)=0
 
void cancel ()
 
bool is_cancelled () const
 
native_handle_type native_handle () const
 
wait_type event () const
 

Private Attributes

native_handle_type fd_
 
wait_type event_
 

Detailed Description

base class of async operation.

  • file-descriptor
  • wait-event

Member Typedef Documentation

◆ wait_type

Constructor & Destructor Documentation

◆ async_op()

net::io_context::async_op::async_op ( native_handle_type  fd,
wait_type  ev 
)
inline

◆ ~async_op()

virtual net::io_context::async_op::~async_op ( )
virtualdefault

Member Function Documentation

◆ cancel()

void net::io_context::async_op::cancel ( )
inline

◆ event()

wait_type net::io_context::async_op::event ( ) const
inline

◆ is_cancelled()

bool net::io_context::async_op::is_cancelled ( ) const
inline

◆ native_handle()

native_handle_type net::io_context::async_op::native_handle ( ) const
inline

◆ run()

virtual void net::io_context::async_op::run ( io_context )
pure virtual

Member Data Documentation

◆ event_

wait_type net::io_context::async_op::event_
private

◆ fd_

native_handle_type net::io_context::async_op::fd_
private

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