1 #ifndef GAUDIHIVE_THREADPOOLSVC_H
2 #define GAUDIHIVE_THREADPOOLSVC_H
9 #include "tbb/spin_mutex.h"
10 #include "tbb/task_scheduler_init.h"
11 #include "boost/thread.hpp"
ThreadPoolSvc(const std::string &name, ISvcLocator *svc)
Constructor.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
boost::barrier * m_barrier
~ThreadPoolSvc()
Destructor.
virtual bool isInit() const
virtual StatusCode initPool(const int &poolSize)
const std::string & name() const override
Retrieve name of the service.
This class is used for returning status codes from appropriate routines.
virtual int poolSize() const
tbb::spin_mutex m_initMutex
tbb::task_scheduler_init * m_tbbSchedInit
Base class used to extend a class implementing other interfaces.
virtual StatusCode initialize()
Initialise.
ToolHandleArray< IThreadInitTool > m_threadInitTools
virtual std::vector< IThreadInitTool * > getThreadInitTools() const
virtual StatusCode finalize()
Finalise.