ATLAS Offline Software
Control
AthenaExamples
AthExHive
src
ThreadInitTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 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
{
14
}
15
16
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
17
18
void
19
ThreadInitTool::initThread
()
20
{
21
ATH_MSG_INFO
(
"initThread in thread 0x"
<< std::hex << pthread_self()
22
<<
" at "
<<
this
<< std::dec );
23
24
// Thread Local initializations would go here.
25
26
m_nInitThreads
++;
27
}
28
29
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
30
31
void
32
ThreadInitTool::terminateThread
()
33
{
34
ATH_MSG_INFO
(
"terminateThread in thread 0x"
35
<< std::hex << pthread_self() << std::dec );
36
37
m_nInitThreads
--;
38
39
}
40
41
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:32
python.CaloAddPedShiftConfig.type
type
Definition:
CaloAddPedShiftConfig.py:42
ThreadInitTool::initThread
virtual void initThread() override
Definition:
ThreadInitTool.cxx:19
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:240
ThreadInitTool.h
Generated on Mon Sep 29 2025 21:20:15 for ATLAS Offline Software by
1.8.18