LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::DebugValue Struct Reference

#include "DebugMacros.h"

Public Member Functions

 DebugValue ()
 
int operator() ()
 

Public Attributes

std::atomic< char const * > cvalue_
 
std::atomic< int > value_
 

Detailed Description

Definition at line 9 of file DebugMacros.h.

Constructor & Destructor Documentation

art::DebugValue::DebugValue ( )

Definition at line 8 of file DebugMacros.cc.

References cvalue_, and value_.

9  {
10  cvalue_ = getenv("PROC_DEBUG");
11  value_ = (cvalue_.load() == nullptr) ? 0 : atoi(cvalue_.load());
12  }
std::atomic< char const * > cvalue_
Definition: DebugMacros.h:18
std::atomic< int > value_
Definition: DebugMacros.h:19

Member Function Documentation

int art::DebugValue::operator() ( )
inline

Definition at line 13 of file DebugMacros.h.

References value_.

14  {
15  return value_.load();
16  }
std::atomic< int > value_
Definition: DebugMacros.h:19

Member Data Documentation

std::atomic<char const*> art::DebugValue::cvalue_

Definition at line 18 of file DebugMacros.h.

Referenced by DebugValue().

std::atomic<int> art::DebugValue::value_

Definition at line 19 of file DebugMacros.h.

Referenced by DebugValue(), and operator()().


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