Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Skyfire::Asio::IoContextWorkGuard Class Reference

#include <BoostAsioWork.h>

Public Member Functions

 IoContextWorkGuard (boost::asio::io_context &ioContext)
void Reset ()
 ~IoContextWorkGuard ()

Private Member Functions

 IoContextWorkGuard (IoContextWorkGuard const &right)=delete
IoContextWorkGuardoperator= (IoContextWorkGuard const &right)=delete

Private Attributes

boost::asio::io_context::executor_type _executor
bool _ownsWork

Detailed Description

Definition at line 17 of file BoostAsioWork.h.

Constructor & Destructor Documentation

◆ IoContextWorkGuard() [1/2]

Skyfire::Asio::IoContextWorkGuard::IoContextWorkGuard ( boost::asio::io_context & ioContext)
inlineexplicit

Definition at line 20 of file BoostAsioWork.h.

References _executor, and _ownsWork.

Referenced by IoContextWorkGuard(), and operator=().

◆ ~IoContextWorkGuard()

Skyfire::Asio::IoContextWorkGuard::~IoContextWorkGuard ( )
inline

Definition at line 26 of file BoostAsioWork.h.

References Reset().

◆ IoContextWorkGuard() [2/2]

Skyfire::Asio::IoContextWorkGuard::IoContextWorkGuard ( IoContextWorkGuard const & right)
privatedelete

References IoContextWorkGuard().

Member Function Documentation

◆ operator=()

IoContextWorkGuard & Skyfire::Asio::IoContextWorkGuard::operator= ( IoContextWorkGuard const & right)
privatedelete

References IoContextWorkGuard().

◆ Reset()

void Skyfire::Asio::IoContextWorkGuard::Reset ( )
inline

Definition at line 31 of file BoostAsioWork.h.

References _executor, and _ownsWork.

Referenced by ~IoContextWorkGuard().

Member Data Documentation

◆ _executor

boost::asio::io_context::executor_type Skyfire::Asio::IoContextWorkGuard::_executor
private

Definition at line 41 of file BoostAsioWork.h.

Referenced by IoContextWorkGuard(), and Reset().

◆ _ownsWork

bool Skyfire::Asio::IoContextWorkGuard::_ownsWork
private

Definition at line 42 of file BoostAsioWork.h.

Referenced by IoContextWorkGuard(), and Reset().


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