The Gaudi Framework
master (9f3f8895)
Toggle main menu visibility
Loading...
Searching...
No Matches
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
29
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
};
IInterface.h
IThreadInitTool.h
GAUDI_API
#define GAUDI_API
Definition
Kernel.h:49
IInterface
Definition of the basic interface.
Definition
IInterface.h:225
IThreadPoolSvc
Abstract interface for a service that manages a thread pool.
Definition
IThreadPoolSvc.h:32
IThreadPoolSvc::initPool
virtual StatusCode initPool(const int &poolSize, const int &maxParallelismExtra)=0
Initializes the thread pool.
IThreadPoolSvc::poolSize
virtual int poolSize() const =0
Size of the initialized thread pool.
IThreadPoolSvc::initThisThread
virtual void initThisThread()=0
Do thread local initialization of current thread.
IThreadPoolSvc::terminatePool
virtual StatusCode terminatePool()=0
Finalize the thread pool.
IThreadPoolSvc::DeclareInterfaceID
DeclareInterfaceID(IThreadPoolSvc, 1, 0)
InterfaceID.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
GaudiKernel
include
GaudiKernel
IThreadPoolSvc.h
Generated on
for The Gaudi Framework by
1.17.0