OpenVPN 3 Core Library
|
Scoped RAII for the global_log
pointer.
More...
#include <logdatetime.hpp>
Classes | |
class | Wrapper |
Argument to construct a Context in a different thread. More... | |
Public Member Functions | |
Context (const Wrapper &) | |
Context (const Wrapper &wrap) | |
construct a Context in a different thread | |
Context (OPENVPN_LOG_CLASS *cli) | |
construct a Context setting the global_log pointer | |
~Context () | |
Static Public Member Functions | |
static bool | defined () |
static OPENVPN_LOG_CLASS * | obj () |
Scoped RAII for the global_log
pointer.
While in scope, global_log
points to the instance of the class defined by the OPENVPN_LOG_CLASS
macro above. When it goes out of scope, the global_log
pointer is reset to nullptr
Definition at line 32 of file logdatetime.hpp.
|
inline |
Definition at line 37 of file logdatetime.hpp.
|
inline |
construct a Context
in a different thread
wrap | holds the value of global_log from the sourcing thread |
Definition at line 65 of file logthread_class.hpp.
|
inline |
construct a Context
setting the global_log
pointer
cli | pointer to OPENVPN_LOG_CLASS instance |
Definition at line 77 of file logthread_class.hpp.
|
inline |
Definition at line 82 of file logthread_class.hpp.
|
inlinestatic |
Definition at line 87 of file logthread_class.hpp.
|
inlinestatic |
Definition at line 92 of file logthread_class.hpp.