The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
IThreadInitTool.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
14
15//-----------------------------------------------------------------------------
16
30
31//-----------------------------------------------------------------------------
32
33class IThreadInitTool : virtual public IAlgTool {
34
35public:
38
40 virtual void initThread() = 0;
41
43 virtual void terminateThread() = 0;
44
50 virtual unsigned int nInit() const = 0;
51};
The interface implemented by the AlgTool base class.
Definition IAlgTool.h:29
Abstract interface for AlgTools to do thread local initialization.
DeclareInterfaceID(IThreadInitTool, 1, 0)
Declare the interface to the framework.
virtual void terminateThread()=0
Perform worker thread finalization. Called concurrently on each thread.
virtual unsigned int nInit() const =0
Number of threads initialized.
virtual void initThread()=0
Perform worker thread initialization. Called concurrently on each thread.