The Gaudi Framework
master (d98a2936)
IThreadPoolSvc.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
13
#include <
GaudiKernel/IInterface.h
>
14
#include <
GaudiKernel/IThreadInitTool.h
>
15
#include <vector>
16
17
//-----------------------------------------------------------------------------
18
30
//-----------------------------------------------------------------------------
31
32
class
GAUDI_API
IThreadPoolSvc
:
virtual
public
IInterface
{
33
34
public
:
36
DeclareInterfaceID
(
IThreadPoolSvc
, 1, 0 );
37
39
virtual
StatusCode
initPool
(
const
int
& poolSize,
const
int
& maxParallelismExtra ) = 0;
40
42
virtual
StatusCode
terminatePool
() = 0;
43
45
virtual
int
poolSize
()
const
= 0;
46
50
virtual
void
initThisThread
() = 0;
51
};
IThreadInitTool.h
IThreadPoolSvc::poolSize
virtual int poolSize() const =0
Size of the initialized thread pool.
IThreadPoolSvc::DeclareInterfaceID
DeclareInterfaceID(IThreadPoolSvc, 1, 0)
InterfaceID.
IThreadPoolSvc::initPool
virtual StatusCode initPool(const int &poolSize, const int &maxParallelismExtra)=0
Initializes the thread pool.
StatusCode
Definition:
StatusCode.h:64
IInterface.h
IThreadPoolSvc::initThisThread
virtual void initThisThread()=0
Do thread local initialization of current thread.
IThreadPoolSvc::terminatePool
virtual StatusCode terminatePool()=0
Finalize the thread pool.
IInterface
Definition:
IInterface.h:225
IThreadPoolSvc
Abstract interface for a service that manages a thread pool.
Definition:
IThreadPoolSvc.h:32
GAUDI_API
#define GAUDI_API
Definition:
Kernel.h:49
GaudiKernel
include
GaudiKernel
IThreadPoolSvc.h
Generated on Wed Aug 13 2025 09:05:04 for The Gaudi Framework by
1.8.18