QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
anonymous_namespace{qetlogger.cpp}::ReentrancyGuard Struct Reference

ReentrancyGuard Sets the referenced flag on construction, clears it on destruction (including via early return / exception unwinding). Used as the per-thread guard against the logger recursing into itself. More...

Collaboration diagram for anonymous_namespace{qetlogger.cpp}::ReentrancyGuard:
Collaboration graph

Public Member Functions

 ReentrancyGuard (bool &f)
 ~ReentrancyGuard ()

Public Attributes

bool & flag

Detailed Description

ReentrancyGuard Sets the referenced flag on construction, clears it on destruction (including via early return / exception unwinding). Used as the per-thread guard against the logger recursing into itself.

Constructor & Destructor Documentation

◆ ReentrancyGuard()

anonymous_namespace{qetlogger.cpp}::ReentrancyGuard::ReentrancyGuard ( bool & f)
inlineexplicit

◆ ~ReentrancyGuard()

anonymous_namespace{qetlogger.cpp}::ReentrancyGuard::~ReentrancyGuard ( )
inline

Member Data Documentation

◆ flag

bool& anonymous_namespace{qetlogger.cpp}::ReentrancyGuard::flag

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