The Gaudi Framework  master (37c0b60a)
IThreadPoolSvc.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 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 #ifndef GAUDIKERNEL_ITHREADPOOLSVC_H
12 #define GAUDIKERNEL_ITHREADPOOLSVC_H
13 
14 #include <GaudiKernel/IInterface.h>
16 #include <vector>
17 
18 //-----------------------------------------------------------------------------
19 
31 //-----------------------------------------------------------------------------
32 
33 class GAUDI_API IThreadPoolSvc : virtual public IInterface {
34 
35 public:
38 
40  virtual StatusCode initPool( const int& poolSize, const int& maxParallelismExtra ) = 0;
41 
43  virtual StatusCode terminatePool() = 0;
44 
46  virtual int poolSize() const = 0;
47 
51  virtual void initThisThread() = 0;
52 };
53 
54 #endif
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:65
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:239
IThreadPoolSvc
Abstract interface for a service that manages a thread pool.
Definition: IThreadPoolSvc.h:33
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81