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

#include <assert_only_one_thread.h>

Classes

class  Sentry
 

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 30 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 32 of file assert_only_one_thread.h.

35  : filename_{filename}, linenum_{linenum}, funcname_{funcname}
36  {}
string filename
Definition: train.py:213

Member Data Documentation

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

Definition at line 62 of file assert_only_one_thread.h.

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

Definition at line 59 of file assert_only_one_thread.h.

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

Definition at line 61 of file assert_only_one_thread.h.

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

Definition at line 60 of file assert_only_one_thread.h.


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