AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Asio::IoContext Class Reference

#include "IoContext.h"

Public Member Functions

 IoContext ()
 
 IoContext (int concurrency_hint)
 
 operator IoContextBaseNamespace::IoContextBase & ()
 
 operator IoContextBaseNamespace::IoContextBase const & () const
 
std::size_t run ()
 
void stop ()
 
boost::asio::io_context::executor_type get_executor () noexcept
 

Private Attributes

IoContextBaseNamespace::IoContextBase _impl
 

Detailed Description

Constructor & Destructor Documentation

◆ IoContext() [1/2]

Acore::Asio::IoContext::IoContext ( )
inline
33: _impl() { }
IoContextBaseNamespace::IoContextBase _impl
Definition: IoContext.h:45

◆ IoContext() [2/2]

Acore::Asio::IoContext::IoContext ( int  concurrency_hint)
inlineexplicit
34: _impl(concurrency_hint) { }

Member Function Documentation

◆ get_executor()

boost::asio::io_context::executor_type Acore::Asio::IoContext::get_executor ( )
inlinenoexcept
42{ return _impl.get_executor(); }

References _impl.

◆ operator IoContextBaseNamespace::IoContextBase &()

Acore::Asio::IoContext::operator IoContextBaseNamespace::IoContextBase & ( )
inline
36{ return _impl; }

References _impl.

◆ operator IoContextBaseNamespace::IoContextBase const &()

Acore::Asio::IoContext::operator IoContextBaseNamespace::IoContextBase const & ( ) const
inline
37{ return _impl; }

References _impl.

◆ run()

std::size_t Acore::Asio::IoContext::run ( )
inline
39{ return _impl.run(); }

References _impl.

Referenced by NetworkThread< SocketType >::Run().

◆ stop()

void Acore::Asio::IoContext::stop ( )
inline
40{ _impl.stop(); }

References _impl.

Referenced by NetworkThread< SocketType >::Stop().

Member Data Documentation

◆ _impl

IoContextBaseNamespace::IoContextBase Acore::Asio::IoContext::_impl
private