ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ThreadInitTool Class Reference

#include <ThreadInitTool.h>

Inheritance diagram for ThreadInitTool:
Collaboration diagram for ThreadInitTool:

Public Member Functions

 ThreadInitTool (const std::string &, const std::string &, const IInterface *)
 
virtual void initThread () override
 
virtual void terminateThread () override
 
virtual unsigned int nInit () const override
 

Private Attributes

std::atomic_uint m_nInitThreads
 

Detailed Description

Definition at line 30 of file ThreadInitTool.h.

Constructor & Destructor Documentation

◆ ThreadInitTool()

ThreadInitTool::ThreadInitTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 10 of file ThreadInitTool.cxx.

12  : base_class(type, name, parent),
14 {
15 }

Member Function Documentation

◆ initThread()

void ThreadInitTool::initThread ( )
overridevirtual

Definition at line 20 of file ThreadInitTool.cxx.

21 {
22  ATH_MSG_INFO ("initThread in thread 0x" << std::hex << pthread_self()
23  << " at " << this << std::dec );
24 
25  // Thread Local initializations would go here.
26 
28 }

◆ nInit()

virtual unsigned int ThreadInitTool::nInit ( ) const
inlineoverridevirtual

Definition at line 39 of file ThreadInitTool.h.

39 { return m_nInitThreads; }

◆ terminateThread()

void ThreadInitTool::terminateThread ( )
overridevirtual

Definition at line 33 of file ThreadInitTool.cxx.

34 {
35  ATH_MSG_INFO ("terminateThread in thread 0x"
36  << std::hex << pthread_self() << std::dec );
37 
39 
40 }

Member Data Documentation

◆ m_nInitThreads

std::atomic_uint ThreadInitTool::m_nInitThreads
private

Definition at line 43 of file ThreadInitTool.h.


The documentation for this class was generated from the following files:
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ThreadInitTool::m_nInitThreads
std::atomic_uint m_nInitThreads
Definition: ThreadInitTool.h:43
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78