OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::ActionThread Class Reference

#include <actionthread.hpp>

Inheritance diagram for openvpn::ActionThread:
[legend]
Collaboration diagram for openvpn::ActionThread:
[legend]

Classes

struct  Notify
 

Public Types

typedef RCPtr< ActionThreadPtr
 
- Public Types inherited from openvpn::RC< thread_safe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 ActionThread (openvpn_io::io_context &io_context_arg, const ActionList::Ptr &action_list, Notify *completion_handler_arg)
 
void stop (const bool halt)
 
virtual ~ActionThread ()
 
- Public Member Functions inherited from openvpn::RC< thread_safe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Private Member Functions

void completion_post (bool status)
 
void thread_func ()
 

Private Attributes

openvpn_io::io_context & io_context
 
std::thread * thread
 
ActionList::Ptr actions
 
Notifycompletion_handler
 
Log::Context::Wrapper logwrap
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_safe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Definition at line 24 of file actionthread.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 27 of file actionthread.hpp.

Constructor & Destructor Documentation

◆ ActionThread()

openvpn::ActionThread::ActionThread ( openvpn_io::io_context &  io_context_arg,
const ActionList::Ptr action_list,
Notify completion_handler_arg 
)
inline

Definition at line 34 of file actionthread.hpp.

◆ ~ActionThread()

virtual openvpn::ActionThread::~ActionThread ( )
inlinevirtual

Definition at line 61 of file actionthread.hpp.

Member Function Documentation

◆ completion_post()

void openvpn::ActionThread::completion_post ( bool  status)
inlineprivate

Definition at line 67 of file actionthread.hpp.

◆ stop()

void openvpn::ActionThread::stop ( const bool  halt)
inline

Definition at line 46 of file actionthread.hpp.

Here is the caller graph for this function:

◆ thread_func()

void openvpn::ActionThread::thread_func ( )
inlineprivate

Definition at line 75 of file actionthread.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ actions

ActionList::Ptr openvpn::ActionThread::actions
private

Definition at line 95 of file actionthread.hpp.

◆ completion_handler

Notify* openvpn::ActionThread::completion_handler
private

Definition at line 96 of file actionthread.hpp.

◆ io_context

openvpn_io::io_context& openvpn::ActionThread::io_context
private

Definition at line 93 of file actionthread.hpp.

◆ logwrap

Log::Context::Wrapper openvpn::ActionThread::logwrap
private

Definition at line 97 of file actionthread.hpp.

◆ thread

std::thread* openvpn::ActionThread::thread
private

Definition at line 94 of file actionthread.hpp.


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