TrinityCore
Trinity::Asio::IoContext Class Reference

#include <IoContext.h>

Public Types

using Executor = boost::asio::io_context::executor_type
 

Public Member Functions

 IoContext ()
 
 IoContext (int concurrency_hint)
 
 operator boost::asio::io_context & ()
 
 operator boost::asio::io_context const & () const
 
std::size_t run ()
 
std::size_t poll ()
 
void stop ()
 
bool stopped () const
 
void restart ()
 
Executor get_executor () noexcept
 

Private Attributes

boost::asio::io_context _impl
 

Detailed Description

Definition at line 29 of file IoContext.h.

Member Typedef Documentation

◆ Executor

using Trinity::Asio::IoContext::Executor = boost::asio::io_context::executor_type

Definition at line 32 of file IoContext.h.

Constructor & Destructor Documentation

◆ IoContext() [1/2]

Trinity::Asio::IoContext::IoContext ( )
inline

Definition at line 34 of file IoContext.h.

◆ IoContext() [2/2]

Trinity::Asio::IoContext::IoContext ( int  concurrency_hint)
inlineexplicit

Definition at line 35 of file IoContext.h.

Member Function Documentation

◆ get_executor()

Executor Trinity::Asio::IoContext::get_executor ( )
inlinenoexcept

Definition at line 47 of file IoContext.h.

+ Here is the caller graph for this function:

◆ operator boost::asio::io_context &()

Trinity::Asio::IoContext::operator boost::asio::io_context & ( )
inline

Definition at line 37 of file IoContext.h.

◆ operator boost::asio::io_context const &()

Trinity::Asio::IoContext::operator boost::asio::io_context const & ( ) const
inline

Definition at line 38 of file IoContext.h.

◆ poll()

std::size_t Trinity::Asio::IoContext::poll ( )
inline

Definition at line 41 of file IoContext.h.

◆ restart()

void Trinity::Asio::IoContext::restart ( )
inline

Definition at line 45 of file IoContext.h.

◆ run()

std::size_t Trinity::Asio::IoContext::run ( )
inline

Definition at line 40 of file IoContext.h.

+ Here is the caller graph for this function:

◆ stop()

void Trinity::Asio::IoContext::stop ( )
inline

Definition at line 42 of file IoContext.h.

+ Here is the caller graph for this function:

◆ stopped()

bool Trinity::Asio::IoContext::stopped ( ) const
inline

Definition at line 44 of file IoContext.h.

Member Data Documentation

◆ _impl

boost::asio::io_context Trinity::Asio::IoContext::_impl
private

Definition at line 50 of file IoContext.h.


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