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

Classes

class  DeadlineTimer
 
class  IoContext
 
class  Resolver
 
class  Strand
 

Functions

template<typename T >
decltype(auto) post (IoContextBaseNamespace::IoContextBase &ioContext, T &&t)
 
template<typename T >
decltype(auto) get_io_context (T &&ioObject)
 
template<typename T >
decltype(auto) bind_executor (Strand &strand, T &&t)
 

Function Documentation

◆ bind_executor()

template<typename T >
decltype(auto) Acore::Asio::bind_executor ( Strand strand,
T &&  t 
)
inline
44 {
45 return strand.wrap(std::forward<T>(t));
46 }

Referenced by Log::write().

◆ get_io_context()

template<typename T >
decltype(auto) Acore::Asio::get_io_context ( T &&  ioObject)
inline
68 {
69#if BOOST_VERSION >= 106600
70 return ioObject.get_executor().context();
71#else
72 return ioObject.get_io_service();
73#endif
74 }

Referenced by Metric::Unload().

◆ post()

template<typename T >
decltype(auto) Acore::Asio::post ( IoContextBaseNamespace::IoContextBase &  ioContext,
T &&  t 
)
inline
58 {
59#if BOOST_VERSION >= 106600
60 return boost::asio::post(ioContext, std::forward<T>(t));
61#else
62 return ioContext.post(std::forward<T>(t));
63#endif
64 }

Referenced by Log::write().