CARLA
Loading...
Searching...
No Matches
io_context_running Class Reference

Public Member Functions

 io_context_running (size_t threads=2u)
void stop ()
 ~io_context_running ()

Public Attributes

boost::asio::io_context service

Private Attributes

carla::ThreadGroup _threads
boost::asio::executor_work_guard< boost::asio::io_context::executor_type > _work_to_do

Detailed Description

Definition at line 29 of file test_streaming.cpp.

Constructor & Destructor Documentation

◆ io_context_running()

io_context_running::io_context_running ( size_t threads = 2u)
inlineexplicit

Definition at line 34 of file test_streaming.cpp.

References _threads, _work_to_do, carla::ThreadGroup::CreateThreads(), and service.

◆ ~io_context_running()

io_context_running::~io_context_running ( )
inline

Definition at line 39 of file test_streaming.cpp.

References stop().

Member Function Documentation

◆ stop()

void io_context_running::stop ( )
inline

Definition at line 43 of file test_streaming.cpp.

References _threads, carla::ThreadGroup::JoinAll(), and service.

Referenced by TEST(), TEST(), and ~io_context_running().

Member Data Documentation

◆ _threads

carla::ThreadGroup io_context_running::_threads
private

Definition at line 52 of file test_streaming.cpp.

Referenced by io_context_running(), and stop().

◆ _work_to_do

boost::asio::executor_work_guard<boost::asio::io_context::executor_type> io_context_running::_work_to_do
private

Definition at line 50 of file test_streaming.cpp.

Referenced by io_context_running().

◆ service

boost::asio::io_context io_context_running::service

Definition at line 32 of file test_streaming.cpp.

Referenced by io_context_running(), stop(), TEST(), and TEST().


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