Public Member Functions | Public Attributes | List of all members
art::DebugTasksValue Struct Reference

#include <TaskDebugMacros.h>

Public Member Functions

 DebugTasksValue ()
 
int operator() () const noexcept
 

Public Attributes

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

Detailed Description

Definition at line 15 of file TaskDebugMacros.h.

Constructor & Destructor Documentation

art::DebugTasksValue::DebugTasksValue ( )

Definition at line 69 of file TaskDebugMacros.cc.

70  {
71  cvalue_ = getenv("ART_DEBUG_TASKS");
72  value_ = (cvalue_.load() == nullptr) ? 0 : atoi(cvalue_.load());
73  }
std::atomic< int > value_
std::string getenv(std::string const &name)
Definition: getenv.cc:15
std::atomic< char const * > cvalue_

Member Function Documentation

int art::DebugTasksValue::operator() ( ) const
inlinenoexcept

Definition at line 19 of file TaskDebugMacros.h.

20  {
21  return value_.load();
22  }
std::atomic< int > value_

Member Data Documentation

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

Definition at line 24 of file TaskDebugMacros.h.

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

Definition at line 25 of file TaskDebugMacros.h.


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