ATLAS Offline Software
Loading...
Searching...
No Matches
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
10ThreadInitTool::ThreadInitTool( const std::string& type, const std::string& name,
11 const IInterface* parent )
12 : base_class(type, name, parent)
13{
14}
15
16// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
17
18void
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
27}
28
29// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
30
31void
33{
34 ATH_MSG_INFO ("terminateThread in thread 0x"
35 << std::hex << pthread_self() << std::dec );
36
38
39}
40
41
#define ATH_MSG_INFO(x)
ThreadInitTool(const std::string &, const std::string &, const IInterface *)
virtual void initThread() override
virtual void terminateThread() override
std::atomic_uint m_nInitThreads