Public Member Functions | Public Attributes | List of all members
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.

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::string getenv(std::string const &name)
Definition: getenv.cc:15
std::atomic< int > value_
Definition: DebugMacros.h:19

Member Function Documentation

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

Definition at line 13 of file DebugMacros.h.

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.

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

Definition at line 19 of file DebugMacros.h.


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