ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Public Member Functions | List of all members
rad::IoExecutor Class Reference

Adapts boost::asio::io_context into a compatible boost::thread Executor type. More...

#include <ioExecutor.hpp>

Public Member Functions

 IoExecutor (boost::asio::io_context &ctx)
 
 IoExecutor (IoExecutor &&)=default
 
IoExecutoroperator= (IoExecutor &&)=default
 
 IoExecutor (IoExecutor const &)=delete
 
IoExecutoroperator= (IoExecutor &)=delete
 
void close ()
 
bool closed ()
 
template<typename Closure >
void submit (Closure &&closure)
 
bool try_executing_one ()
 
boost::asio::io_context & get_io_context () noexcept
 Not part of the boost::thread::executor concept. More...
 

Detailed Description

Adapts boost::asio::io_context into a compatible boost::thread Executor type.

This must match boost::thread Executor concept.

Definition at line 12 of file ioExecutor.hpp.

Constructor & Destructor Documentation

◆ IoExecutor() [1/3]

rad::IoExecutor::IoExecutor ( boost::asio::io_context &  ctx)
inlineexplicit

Definition at line 14 of file ioExecutor.hpp.

◆ IoExecutor() [2/3]

rad::IoExecutor::IoExecutor ( IoExecutor &&  )
default

◆ IoExecutor() [3/3]

rad::IoExecutor::IoExecutor ( IoExecutor const &  )
delete

Member Function Documentation

◆ close()

void rad::IoExecutor::close ( )
inline

Definition at line 22 of file ioExecutor.hpp.

◆ closed()

bool rad::IoExecutor::closed ( )
inline

Definition at line 25 of file ioExecutor.hpp.

◆ get_io_context()

boost::asio::io_context& rad::IoExecutor::get_io_context ( )
inlinenoexcept

Not part of the boost::thread::executor concept.

Definition at line 41 of file ioExecutor.hpp.

◆ operator=() [1/2]

IoExecutor& rad::IoExecutor::operator= ( IoExecutor &&  )
default

◆ operator=() [2/2]

IoExecutor& rad::IoExecutor::operator= ( IoExecutor )
delete

◆ submit()

template<typename Closure >
void rad::IoExecutor::submit ( Closure &&  closure)
inline

Definition at line 30 of file ioExecutor.hpp.

◆ try_executing_one()

bool rad::IoExecutor::try_executing_one ( )
inline

Definition at line 34 of file ioExecutor.hpp.


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