|
OpenVPN 3 Core Library
|
#include <runcontext.hpp>
Classes | |
| class | ThreadContext |
Public Types | |
| typedef RCPtr< RunContext > | Ptr |
Public Types inherited from openvpn::RC< thread_safe_refcount > | |
| typedef RCPtr< RC > | Ptr |
Public Member Functions | |
| RunContext () | |
| openvpn_io::io_context * | io_context_ptr () |
| void | set_async_stop (Stop *async_stop) |
| void | set_log_reopen (LogSetup::Ptr lr) |
| void | set_thread (const unsigned int unit, std::thread *thread) |
| void | set_server (const unsigned int unit, ServerThread *serv) |
| void | clear_server (const unsigned int unit) |
| std::vector< typename ServerThread::Ptr > | get_servers () |
| void | enable_log_history () |
| void | disable_log_history () override |
| std::vector< RunContextLogEntry > | add_log_observer (const unsigned int unit) override |
| void | set_prefix (const std::string &pre) |
| void | run () |
| void | join () |
| template<typename SVC > | |
| void | process_exception (const std::string &thread_name, const unsigned int unit, const bool io_context_run_called, openvpn_io::io_context &io_context, SVC &svc, PThreadBarrier &event_loop_bar, const std::exception &e) |
| void | log (const std::string &str) override |
| void | cancel () override |
| const Log::Context::Wrapper & | log_wrapper () |
| void | set_stats_obj (const typename Stats::Ptr &stats_arg) |
| Stop * | async_stop () override |
Public Member Functions inherited from openvpn::RC< thread_safe_refcount > | |
| RC () noexcept=default | |
| RC (const RC &)=delete | |
| virtual | ~RC ()=default |
| RC & | operator= (const RC &)=delete |
| olong | use_count () const noexcept |
| Delegates call to RCImpl and returns the result. | |
Protected Member Functions | |
| virtual void | signal (const openvpn_io::error_code &error, int signum) |
Protected Attributes | |
| volatile bool | halt = false |
Private Member Functions | |
| void | add_thread () |
| void | remove_thread () |
| void | signal_rearm () |
| void | schedule_debug_exit () |
Private Attributes | |
| openvpn_io::io_context | io_context {1} |
| Stats::Ptr | stats |
| ASIOSignals::Ptr | signals |
| AsioTimer | exit_timer |
| std::string | prefix |
| std::vector< std::thread * > | threadlist |
| std::recursive_mutex | mutex |
| std::vector< ServerThread * > | servlist |
| int | thread_count = 0 |
| Stop * | async_stop_ = nullptr |
| std::vector< unsigned int > | log_observers |
| std::unique_ptr< std::vector< RunContextLogEntry > > | log_history |
| Log::Context | log_context |
| Log::Context::Wrapper | log_wrap |
| LogSetup::Ptr | log_reopen |
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. | |
Definition at line 91 of file runcontext.hpp.
| typedef RCPtr<RunContext> openvpn::RunContext< ServerThread, Stats >::Ptr |
Definition at line 94 of file runcontext.hpp.
|
inline |
Definition at line 114 of file runcontext.hpp.
|
inlineoverridevirtual |
Implements openvpn::RunContextBase.
Definition at line 199 of file runcontext.hpp.
|
inlineprivate |
|
inlineoverridevirtual |
Implements openvpn::RunContextBase.
Definition at line 342 of file runcontext.hpp.
|
inlineoverridevirtual |
Implements openvpn::RunContextBase.
Definition at line 293 of file runcontext.hpp.
|
inline |
|
inlineoverridevirtual |
Implements openvpn::RunContextBase.
Definition at line 193 of file runcontext.hpp.
|
inline |
Definition at line 186 of file runcontext.hpp.
|
inline |
Definition at line 174 of file runcontext.hpp.
|
inline |
Definition at line 124 of file runcontext.hpp.
|
inline |
Definition at line 235 of file runcontext.hpp.
|
inlineoverridevirtual |
Implements openvpn::LogBase.
Definition at line 269 of file runcontext.hpp.
|
inline |
|
inline |
Definition at line 250 of file runcontext.hpp.
|
inlineprivate |
|
inline |
Definition at line 229 of file runcontext.hpp.
|
inlineprivate |
|
inline |
Definition at line 129 of file runcontext.hpp.
|
inline |
Definition at line 134 of file runcontext.hpp.
|
inline |
Definition at line 224 of file runcontext.hpp.
|
inline |
|
inline |
Definition at line 337 of file runcontext.hpp.
|
inline |
Definition at line 139 of file runcontext.hpp.
|
inlineprotectedvirtual |
Definition at line 368 of file runcontext.hpp.
|
inlineprivate |
|
private |
Definition at line 440 of file runcontext.hpp.
|
private |
Definition at line 425 of file runcontext.hpp.
|
protected |
Definition at line 452 of file runcontext.hpp.
|
private |
Definition at line 422 of file runcontext.hpp.
|
private |
Definition at line 447 of file runcontext.hpp.
|
private |
Definition at line 444 of file runcontext.hpp.
|
private |
Definition at line 443 of file runcontext.hpp.
|
private |
Definition at line 449 of file runcontext.hpp.
|
private |
Definition at line 448 of file runcontext.hpp.
|
private |
Definition at line 433 of file runcontext.hpp.
|
private |
Definition at line 426 of file runcontext.hpp.
|
private |
Definition at line 436 of file runcontext.hpp.
|
private |
Definition at line 424 of file runcontext.hpp.
|
private |
Definition at line 423 of file runcontext.hpp.
|
private |
Definition at line 437 of file runcontext.hpp.
|
private |
Definition at line 427 of file runcontext.hpp.