ATLAS Offline Software
ThreadInitTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "ThreadInitTool.h"
6 #include "unistd.h"
7 
8 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
9 
10 ThreadInitTool::ThreadInitTool( const std::string& type, const std::string& name,
11  const IInterface* parent )
12  : base_class(type, name, parent),
13  m_nInitThreads(0)
14 {
15 }
16 
17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
18 
19 void
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 }
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
31 
32 void
34 {
35  ATH_MSG_INFO ("terminateThread in thread 0x"
36  << std::hex << pthread_self() << std::dec );
37 
39 
40 }
41 
42 
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ThreadInitTool::ThreadInitTool
ThreadInitTool(const std::string &, const std::string &, const IInterface *)
Definition: ThreadInitTool.cxx:10
ThreadInitTool::terminateThread
virtual void terminateThread() override
Definition: ThreadInitTool.cxx:33
ThreadInitTool::initThread
virtual void initThread() override
Definition: ThreadInitTool.cxx:20
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:195
ThreadInitTool.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78