libMesh
|
We use a class to turn perf logging off and on within threads, to be exception-safe and to avoid forcing indirect inclusion of libmesh_logging.h everywhere. More...
#include <threads.h>
Public Member Functions | |
DisablePerfLogInScope ()=default | |
~DisablePerfLogInScope ()=default | |
DisablePerfLogInScope () | |
~DisablePerfLogInScope () | |
Private Attributes | |
const bool | _logging_was_enabled |
We use a class to turn perf logging off and on within threads, to be exception-safe and to avoid forcing indirect inclusion of libmesh_logging.h everywhere.
If we have logging disabled, constructing this class should do nothing; [[maybe_unused]] disables warnings about that.
|
default |
Definition at line 38 of file threads.C.
References libMesh::PerfLog::disable_logging(), and libMesh::perflog.
|
default |
Definition at line 44 of file threads.C.
References _logging_was_enabled, libMesh::PerfLog::enable_logging(), and libMesh::perflog.
libMesh::Threads::DisablePerfLogInScope::DisablePerfLogInScope | ( | ) |
libMesh::Threads::DisablePerfLogInScope::~DisablePerfLogInScope | ( | ) |
|
private |
Definition at line 82 of file threads.h.
Referenced by ~DisablePerfLogInScope().