Classes | Public Member Functions | Private Attributes | List of all members
cet::detail::ThreadCounter Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/cetlib/v3_06_01/source/cetlib/assert_only_one_thread.h"

Classes

class  Sentry
 

Public Member Functions

 ThreadCounter (char const *filename, unsigned const linenum, char const *funcname)
 

Private Attributes

std::atomic< unsigned > counter_ {0u}
 
std::string const filename_
 
unsigned const linenum_
 
std::string const funcname_
 

Detailed Description

Definition at line 29 of file assert_only_one_thread.h.

Constructor & Destructor Documentation

cet::detail::ThreadCounter::ThreadCounter ( char const *  filename,
unsigned const  linenum,
char const *  funcname 
)
inlineexplicit

Definition at line 31 of file assert_only_one_thread.h.

References funcname_, and linenum_.

34  : filename_{filename}, linenum_{linenum}, funcname_{funcname}
35  {}
string filename
Definition: shutoffs.py:106

Member Data Documentation

std::atomic<unsigned> cet::detail::ThreadCounter::counter_ {0u}
private

Definition at line 40 of file assert_only_one_thread.h.

std::string const cet::detail::ThreadCounter::filename_
private

Definition at line 41 of file assert_only_one_thread.h.

std::string const cet::detail::ThreadCounter::funcname_
private

Definition at line 43 of file assert_only_one_thread.h.

Referenced by ThreadCounter().

unsigned const cet::detail::ThreadCounter::linenum_
private

Definition at line 42 of file assert_only_one_thread.h.

Referenced by ThreadCounter().


The documentation for this class was generated from the following file: