LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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.

References cvalue_, and value_.

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

Member Function Documentation

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

Definition at line 19 of file TaskDebugMacros.h.

References value_.

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.

Referenced by DebugTasksValue().

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

Definition at line 25 of file TaskDebugMacros.h.

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


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