ATLAS Offline Software
Loading...
Searching...
No Matches
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.h
ThreadInitTool::ThreadInitTool
ThreadInitTool(const std::string &, const std::string &, const IInterface *)
Definition
ThreadInitTool.cxx:10
ThreadInitTool::initThread
virtual void initThread() override
Definition
ThreadInitTool.cxx:19
ThreadInitTool::terminateThread
virtual void terminateThread() override
Definition
ThreadInitTool.cxx:32
ThreadInitTool::m_nInitThreads
std::atomic_uint m_nInitThreads
Definition
ThreadInitTool.h:43
type
Generated on
for ATLAS Offline Software by
1.14.0