| The Gaudi Framework v32r1 (f65d50dc)

IThreadPoolSvc.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_ITHREADPOOLSVC_H
2 #define GAUDIKERNEL_ITHREADPOOLSVC_H
3
4 #include "GaudiKernel/IInterface.h"
5 #include "GaudiKernel/IThreadInitTool.h"
6 #include <vector>
7
8 //-----------------------------------------------------------------------------
9
21 //-----------------------------------------------------------------------------
22
23 class GAUDI_API IThreadPoolSvc : virtual public IInterface {
24
25 public:
27 DeclareInterfaceID( IThreadPoolSvc, 1, 0 );
28
30 virtual StatusCode initPool( const int& poolSize ) = 0;
31
33 virtual StatusCode terminatePool() = 0;
34
36 virtual int poolSize() const = 0;
37
41 virtual void initThisThread() = 0;
42 };
43
44 #endif
IThreadPoolSvc
Abstract interface for a service that manages a thread pool.
Definition: IThreadPoolSvc.h:23
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
IInterface
Definition of the basic interface.
Definition: IInterface.h:244
DeclareInterfaceID
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:13
IThreadInitTool.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
IInterface.h