The Gaudi Framework  v36r11 (bdb84f5f)
ThreadPoolSvc Class Reference

A service which initializes a TBB thread pool. More...

#include </builds/gaudi/Gaudi/GaudiHive/src/ThreadPoolSvc.h>

Inheritance diagram for ThreadPoolSvc:
Collaboration diagram for ThreadPoolSvc:

Public Member Functions

 ThreadPoolSvc (const std::string &name, ISvcLocator *svc)
 Constructor. More...
 
StatusCode initialize () override final
 Initialise. More...
 
StatusCode finalize () override final
 Finalise. More...
 
StatusCode initPool (const int &poolSize) override final
 Initialize the thread pool and launch the ThreadInitTasks. More...
 
StatusCode terminatePool () override final
 Terminate the thread pool and launch thread termination tasks. More...
 
int poolSize () const override final
 
virtual bool isInit () const
 
virtual void initThisThread () override
 
tbb::task_arena * getArena ()
 
- Public Member Functions inherited from extends< Service, IThreadPoolSvc >
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::stringgetInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
- Public Member Functions inherited from Service
const std::stringname () const override
 Retrieve name of the service
More...
 
StatusCode configure () override
 
StatusCode initialize () override
 
StatusCode start () override
 
StatusCode stop () override
 
StatusCode finalize () override
 
StatusCode terminate () override
 
Gaudi::StateMachine::State FSMState () const override
 
Gaudi::StateMachine::State targetFSMState () const override
 
StatusCode reinitialize () override
 
StatusCode restart () override
 
StatusCode sysInitialize () override
 Initialize Service
More...
 
StatusCode sysStart () override
 Initialize Service
More...
 
StatusCode sysStop () override
 Initialize Service
More...
 
StatusCode sysFinalize () override
 Finalize Service
More...
 
StatusCode sysReinitialize () override
 Re-initialize the Service. More...
 
StatusCode sysRestart () override
 Re-initialize the Service. More...
 
 Service (std::string name, ISvcLocator *svcloc)
 Standard Constructor
More...
 
SmartIF< ISvcLocator > & serviceLocator () const override
 Retrieve pointer to service locator
More...
 
template<class T >
StatusCode service (const std::string &name, const T *&psvc, bool createIf=true) const
 Access a service by name, creating it if it doesn't already exist. More...
 
template<class T >
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
 
template<typename IFace = IService>
SmartIF< IFace > service (const std::string &name, bool createIf=true) const
 
template<class T >
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
 Access a service by name and type, creating it if it doesn't already exist. More...
 
template<class T >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, bool createIf=true)
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, std::string toolTypeAndName, bool createIf=true)
 Declare used tool. More...
 
template<class T >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandleArray< T > &hndlArr, const std::string &doc="none")
 
template<class T >
void addToolsArray (ToolHandleArray< T > &hndlArr)
 
const std::vector< IAlgTool * > & tools () const
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
 
- Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
 PropertyHolder ()=default
 
Gaudi::Details::PropertyBasedeclareProperty (Gaudi::Details::PropertyBase &prop)
 Declare a property. More...
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, TYPE &value, const std::string &doc="none")
 Helper to wrap a regular data member and use it as a regular property. More...
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, Gaudi::Property< TYPE, VERIFIER, HANDLERS > &prop, const std::string &doc="none")
 Declare a PropertyBase instance setting name and documentation. More...
 
Gaudi::Details::PropertyBasedeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="")
 Declare a remote property. More...
 
StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p) override
 set the property from another property with a different name More...
 
StatusCode setProperty (const std::string &s) override
 set the property from the formatted string More...
 
StatusCode setProperty (const Gaudi::Details::PropertyBase &p)
 Set the property from a property. More...
 
virtual StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p)=0
 Set the property from a property with a different name. More...
 
virtual StatusCode setProperty (const std::string &s)=0
 Set the property by string. More...
 
StatusCode setProperty (const std::string &name, const char *v)
 Special case for string literals. More...
 
StatusCode setProperty (const std::string &name, const std::string &v)
 Special case for std::string. More...
 
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value More...
 
StatusCode setPropertyRepr (const std::string &n, const std::string &r) override
 set the property from name and value string representation More...
 
StatusCode getProperty (Gaudi::Details::PropertyBase *p) const override
 get the property More...
 
const Gaudi::Details::PropertyBasegetProperty (std::string_view name) const override
 get the property by name More...
 
StatusCode getProperty (std::string_view n, std::string &v) const override
 convert the property to the string More...
 
const std::vector< Gaudi::Details::PropertyBase * > & getProperties () const override
 get all properties More...
 
bool hasProperty (std::string_view name) const override
 Return true if we have a property with the given name. More...
 
Gaudi::Details::PropertyBaseproperty (std::string_view name) const
 \fixme property and bindPropertiesTo should be protected More...
 
void bindPropertiesTo (Gaudi::Interfaces::IOptionsSvc &optsSvc)
 
 PropertyHolder (const PropertyHolder &)=delete
 
PropertyHolderoperator= (const PropertyHolder &)=delete
 
- Public Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level msgLevel () const
 get the cached level (originally extracted from the embedded MsgStream) More...
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream More...
 

Private Member Functions

StatusCode launchTasks (bool finalize=false)
 Launch tasks to execute the ThreadInitTools. More...
 

Private Attributes

ToolHandleArray< IThreadInitToolm_threadInitTools = { this }
 Handle array of thread init tools. More...
 
bool m_init = false
 Was the thread pool initialized? More...
 
int m_threadPoolSize = 0
 Size of the thread pool allocated. More...
 
tbb::spin_mutex m_initMutex
 Mutex used to protect the initPool and terminatePool methods. More...
 
std::unique_ptr< boost::barrier > m_barrier
 Barrier used to synchronization thread init tasks. More...
 
std::unique_ptr< tbb::global_control > m_tbbgc
 TBB global control parameter. More...
 
tbb::task_arena m_arena
 TBB task arena to run all algorithms. More...
 
std::atomic< int > m_threadInitCount = 0
 Counter for all threads that are initialised. More...
 

Additional Inherited Members

- Public Types inherited from extends< Service, IThreadPoolSvc >
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces... >
 Typedef to the base of this class. More...
 
- Public Types inherited from Service
using Factory = Gaudi::PluginService::Factory< IService *(const std::string &, ISvcLocator *)>
 
- Public Types inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
using PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
 Typedef used to refer to this class from derived classes, as in. More...
 
- Public Types inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
using base_class = CommonMessaging
 
- Public Types inherited from extend_interfaces< Interfaces... >
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids... >::type
 take union of the ext_iids of all Interfaces... More...
 
- Protected Member Functions inherited from Service
std::vector< IAlgTool * > & tools ()
 
 ~Service () override
 Standard Destructor
More...
 
int outputLevel () const
 get the Service's output level More...
 
- Protected Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level setUpMessaging () const
 Set up local caches. More...
 
MSG::Level resetMessaging ()
 Reinitialize internal states. More...
 
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream. More...
 
- Protected Attributes inherited from Service
Gaudi::StateMachine::State m_state = Gaudi::StateMachine::OFFLINE
 Service state
More...
 
Gaudi::StateMachine::State m_targetState = Gaudi::StateMachine::OFFLINE
 Service state
More...
 
Gaudi::Property< int > m_outputLevel { this, "OutputLevel", MSG::NIL, "output level" }
 flag indicating whether ToolHandle tools have been added to m_tools More...
 
Gaudi::Property< bool > m_auditInit { this, "AuditServices", false, "[[deprecated]] unused" }
 
Gaudi::Property< bool > m_auditorInitialize { this, "AuditInitialize", false, "trigger auditor on initialize()" }
 
Gaudi::Property< bool > m_auditorStart { this, "AuditStart", false, "trigger auditor on start()" }
 
Gaudi::Property< bool > m_auditorStop { this, "AuditStop", false, "trigger auditor on stop()" }
 
Gaudi::Property< bool > m_auditorFinalize { this, "AuditFinalize", false, "trigger auditor on finalize()" }
 
Gaudi::Property< bool > m_auditorReinitialize { this, "AuditReinitialize", false, "trigger auditor on reinitialize()" }
 
Gaudi::Property< bool > m_auditorRestart { this, "AuditRestart", false, "trigger auditor on restart()" }
 
Gaudi::Property< bool > m_autoRetrieveTools
 
Gaudi::Property< bool > m_checkToolDeps
 
SmartIF< IAuditorSvcm_pAuditorSvc
 Auditor Service
More...
 

Detailed Description

A service which initializes a TBB thread pool.

This service can be configured with an array of IThreadInitTools which will each be invoked concurrently on each worker thread. A ThreadInitTask is created for each thread and given the list of tools. A boost::barrier is used to synchronize the calling of each tool concurrently on all threads at the same time.

Definition at line 38 of file ThreadPoolSvc.h.

Constructor & Destructor Documentation

◆ ThreadPoolSvc()

ThreadPoolSvc::ThreadPoolSvc ( const std::string name,
ISvcLocator svc 
)

Constructor.

Definition at line 34 of file ThreadPoolSvc.cpp.

34  : extends( name, svcLoc ) {
35  declareProperty( "ThreadInitTools", m_threadInitTools, "ToolHandleArray of IThreadInitTools" );
36 }

Member Function Documentation

◆ finalize()

StatusCode ThreadPoolSvc::finalize ( )
finaloverride

Finalise.

Definition at line 64 of file ThreadPoolSvc.cpp.

64  {
65 
66  if ( !m_init )
67  warning() << "Looks like the ThreadPoolSvc was created, but thread pool "
68  << "was never initialized" << endmsg;
69 
70  return StatusCode::SUCCESS;
71 }

◆ getArena()

tbb::task_arena* ThreadPoolSvc::getArena ( )
inline

Definition at line 61 of file ThreadPoolSvc.h.

61 { return &m_arena; }

◆ initialize()

StatusCode ThreadPoolSvc::initialize ( )
finaloverride

Initialise.

Definition at line 40 of file ThreadPoolSvc.cpp.

40  {
41 
42  // Initialise mother class (read properties, ...)
43  if ( Service::initialize().isFailure() ) {
44  warning() << "Base class could not be initialized" << endmsg;
45  return StatusCode::FAILURE;
46  }
47 
49  error() << "Unable to retrieve ThreadInitTools Array" << endmsg;
50 
51  return StatusCode::FAILURE;
52  }
53 
54  if ( m_threadInitTools.size() != 0 )
55  info() << "retrieved " << m_threadInitTools.size() << " thread init tools" << endmsg;
56  else
57  info() << "no thread init tools attached" << endmsg;
58 
59  return StatusCode::SUCCESS;
60 }

◆ initPool()

StatusCode ThreadPoolSvc::initPool ( const int &  poolSize)
finaloverride

Initialize the thread pool and launch the ThreadInitTasks.

Definition at line 75 of file ThreadPoolSvc.cpp.

75  {
76 
77  tbb::spin_mutex::scoped_lock lock( m_initMutex );
78 
80 
81  ON_DEBUG debug() << "ThreadPoolSvc::initPool() poolSize = " << poolSize << endmsg;
82  // There is a problem in the piece of the code below. if
83  // m_threadPoolSize is set to something negative which is < -1,
84  // algorithm below might not behave as expected. For the time being
85  // I've choosen to create the barrier with the default number of
86  // threads created by the task scheduler init assuming that a
87  // negative value will choose automatic thread creation which will
88  // create default number of threads.
89  // SK
90 
91  // -100 prevents the creation of the pool and the scheduler directly
92  // executes the tasks.
93  // -1 means use all available hardware threads
94 
95  if ( -100 != m_threadPoolSize ) {
96  ON_DEBUG debug() << "Initialising a thread pool of size " << m_threadPoolSize << endmsg;
97 
98  if ( m_threadPoolSize == -1 ) {
100  } else if ( m_threadPoolSize < -1 ) {
101  fatal() << "Unexpected ThreadPoolSize \"" << m_threadPoolSize << "\". Allowed negative values are "
102  << "-1 (use all available cores) and -100 (don't use a thread pool)" << endmsg;
103  return StatusCode::FAILURE;
104  }
105 
106  ON_VERBOSE verbose() << "Maximum allowed parallelism before adjusting: "
107  << tbb::global_control::active_value( tbb::global_control::max_allowed_parallelism ) << endmsg;
108 
109  // to get the number of threads we need, request one thread more to account for how TBB calculates
110  // its soft limit of the number of threads for the global thread pool
111  m_tbbgc =
112  std::make_unique<tbb::global_control>( tbb::global_control::max_allowed_parallelism, m_threadPoolSize + 1 );
113 
115 
116  // Create the task arena to run all algorithms
117  m_arena = tbb::task_arena( m_threadPoolSize + 1 );
118 
119  // Create the barrier for task synchronization at termination
120  // (here we increase the number of threads by one to account for calling thread)
121  m_barrier = std::make_unique<boost::barrier>( m_threadPoolSize + 1 );
122 
123  } else {
124  // don't use a thread pool
126  m_tbbgc = std::make_unique<tbb::global_control>( tbb::global_control::max_allowed_parallelism, 0 );
127  }
128 
129  ON_DEBUG debug() << "Thread Pool initialization complete. Maximum allowed parallelism: "
130  << tbb::global_control::active_value( tbb::global_control::max_allowed_parallelism ) << endmsg;
131 
132  m_init = true;
133 
134  return StatusCode::SUCCESS;
135 }

◆ initThisThread()

void ThreadPoolSvc::initThisThread ( )
overridevirtual

Definition at line 236 of file ThreadPoolSvc.cpp.

236  {
237 
239  // this should never happen
240  error() << "initThisThread triggered, but thread already initialized" << endmsg;
241  throw GaudiException( "initThisThread triggered, but thread already initialized", name(), StatusCode::FAILURE );
242  }
243 
245  boost::barrier* noBarrier = nullptr;
246  ThreadInitTask( m_threadInitTools, noBarrier, serviceLocator(), false )();
247 }

◆ isInit()

virtual bool ThreadPoolSvc::isInit ( ) const
inlinevirtual

Definition at line 57 of file ThreadPoolSvc.h.

57 { return m_init; }

◆ launchTasks()

StatusCode ThreadPoolSvc::launchTasks ( bool  finalize = false)
private

Launch tasks to execute the ThreadInitTools.

Definition at line 160 of file ThreadPoolSvc.cpp.

160  {
161 
162  const std::string taskType = terminate ? "termination" : "initialization";
163 
164  // If we have a thread pool (via a scheduler), then we want to queue
165  // the tasks in TBB to execute on each thread.
166  if ( tbb::global_control::active_value( tbb::global_control::max_allowed_parallelism ) > 0 ) {
167 
168  // Make a warning message if not all threads can be finalised
170  warning() << "Finalising " << m_threadPoolSize << " threads, but " << m_threadInitCount.load()
171  << " threads were initialised" << endmsg;
172  }
173 
174  // Create one task for each worker thread in the pool
175  for ( int i = 0; i < m_threadPoolSize; ++i ) {
176  ON_DEBUG debug() << "creating ThreadInitTask " << i << endmsg;
177 
178  // Queue the task
179  if ( !terminate ) m_threadInitCount++;
182  }
183 
184  // Now wait for all the workers to reach the barrier
185  ON_DEBUG debug() << "waiting at barrier for all ThreadInitTool to finish executing" << endmsg;
186  m_barrier->wait();
187 
188  // Check to make sure all Tools were invoked.
189  // I'm not sure this mechanism is worthwhile.
190  for ( auto& t : m_threadInitTools ) {
191  // Number of threads initialized but not terminated.
192  int numInit = t->nInit();
193  // Expected number based on the type of task.
194  int expectedNumInit = terminate ? 0 : m_threadPoolSize;
195  if ( numInit != expectedNumInit ) {
196  std::ostringstream ost;
197  ost << "not all threads " << ( terminate ? "terminated" : "initialized" ) << " for tool " << t << " : "
198  << t->nInit() << " out of " << m_threadPoolSize << " are currently active.";
199  if ( terminate ) {
200  // it is likely the case that TBB activated new threads
201  // late in the game, and extra initializations were done
202  info() << ost.str() << endmsg;
203  } else {
204  error() << ost.str() << endmsg;
205  return StatusCode::FAILURE;
206  }
207  }
208  }
209 
210  }
211 
212  // In single-threaded mode, there is no scheduler, so we simply call
213  // the task wrapper directly in this thread.
214  else {
215  ON_DEBUG debug() << "launching ThreadInitTask " << taskType << "in this thread." << endmsg;
216 
217  boost::barrier* noBarrier = nullptr;
219  }
220 
221  // Now, we do some error checking
222  if ( ThreadInitTask::execFailed() ) {
223  error() << "a ThreadInitTask failed to execute successfully" << endmsg;
224  return StatusCode::FAILURE;
225  }
226 
227  return StatusCode::SUCCESS;
228 }

◆ poolSize()

int ThreadPoolSvc::poolSize ( ) const
inlinefinaloverride

Definition at line 55 of file ThreadPoolSvc.h.

55 { return m_threadPoolSize; }

◆ terminatePool()

StatusCode ThreadPoolSvc::terminatePool ( )
finaloverride

Terminate the thread pool and launch thread termination tasks.

Definition at line 139 of file ThreadPoolSvc.cpp.

139  {
140  tbb::spin_mutex::scoped_lock lock( m_initMutex );
141 
142  ON_DEBUG debug() << "ThreadPoolSvc::terminatePool()" << endmsg;
143 
144  if ( !m_init ) {
145  error() << "Trying to terminate uninitialized thread pool!" << endmsg;
146  return StatusCode::FAILURE;
147  }
148 
149  // Launch the termination tasks
150  const bool terminate = true;
151  if ( launchTasks( terminate ).isFailure() ) return StatusCode::FAILURE;
152 
153  ON_DEBUG debug() << "Thread pool termination complete!" << endmsg;
154 
155  return StatusCode::SUCCESS;
156 }

Member Data Documentation

◆ m_arena

tbb::task_arena ThreadPoolSvc::m_arena
private

TBB task arena to run all algorithms.

Definition at line 86 of file ThreadPoolSvc.h.

◆ m_barrier

std::unique_ptr<boost::barrier> ThreadPoolSvc::m_barrier
private

Barrier used to synchronization thread init tasks.

Definition at line 80 of file ThreadPoolSvc.h.

◆ m_init

bool ThreadPoolSvc::m_init = false
private

Was the thread pool initialized?

Definition at line 71 of file ThreadPoolSvc.h.

◆ m_initMutex

tbb::spin_mutex ThreadPoolSvc::m_initMutex
private

Mutex used to protect the initPool and terminatePool methods.

Definition at line 77 of file ThreadPoolSvc.h.

◆ m_tbbgc

std::unique_ptr<tbb::global_control> ThreadPoolSvc::m_tbbgc
private

TBB global control parameter.

Definition at line 83 of file ThreadPoolSvc.h.

◆ m_threadInitCount

std::atomic<int> ThreadPoolSvc::m_threadInitCount = 0
private

Counter for all threads that are initialised.

Definition at line 89 of file ThreadPoolSvc.h.

◆ m_threadInitTools

ToolHandleArray<IThreadInitTool> ThreadPoolSvc::m_threadInitTools = { this }
private

Handle array of thread init tools.

Definition at line 68 of file ThreadPoolSvc.h.

◆ m_threadPoolSize

int ThreadPoolSvc::m_threadPoolSize = 0
private

Size of the thread pool allocated.

Definition at line 74 of file ThreadPoolSvc.h.


The documentation for this class was generated from the following files:
ThreadPoolSvc::m_initMutex
tbb::spin_mutex m_initMutex
Mutex used to protect the initPool and terminatePool methods.
Definition: ThreadPoolSvc.h:77
std::this_thread::sleep_for
T sleep_for(T... args)
std::lock
T lock(T... args)
ThreadPoolSvc::poolSize
int poolSize() const override final
Definition: ThreadPoolSvc.h:55
ThreadPoolSvc::m_threadInitCount
std::atomic< int > m_threadInitCount
Counter for all threads that are initialised.
Definition: ThreadPoolSvc.h:89
Service::initialize
StatusCode initialize() override
Definition: Service.cpp:118
std::string
STL class.
GaudiHandleArray::size
size_type size() const
Definition: GaudiHandle.h:475
ON_VERBOSE
#define ON_VERBOSE
Definition: ThreadPoolSvc.cpp:22
GaudiHandleArray::retrieve
StatusCode retrieve()
Retrieve all tools.
Definition: GaudiHandle.h:506
ThreadPoolSvc::launchTasks
StatusCode launchTasks(bool finalize=false)
Launch tasks to execute the ThreadInitTools.
Definition: ThreadPoolSvc.cpp:160
Gaudi::Concurrency::ConcurrencyFlags::setNumThreads
static GAUDI_API void setNumThreads(const std::size_t &nT)
Definition: ConcurrencyFlags.h:68
GaudiException
Definition: GaudiException.h:31
std::chrono::milliseconds
Gaudi::Concurrency::ThreadInitDone
thread_local bool ThreadInitDone
Definition: ThreadInitTask.cpp:22
std::unique_ptr::get
T get(T... args)
GaudiHandleArray::empty
bool empty() const override
Return whether the list of tools is empty.
Definition: GaudiHandle.h:479
ThreadPoolSvc::m_tbbgc
std::unique_ptr< tbb::global_control > m_tbbgc
TBB global control parameter.
Definition: ThreadPoolSvc.h:83
ThreadInitTask::execFailed
static bool execFailed()
Definition: ThreadInitTask.h:43
Service::declareProperty
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
Definition: Service.h:134
bug_34121.t
t
Definition: bug_34121.py:30
ThreadPoolSvc::m_threadInitTools
ToolHandleArray< IThreadInitTool > m_threadInitTools
Handle array of thread init tools.
Definition: ThreadPoolSvc.h:68
ThreadPoolSvc::m_init
bool m_init
Was the thread pool initialized?
Definition: ThreadPoolSvc.h:71
Service::name
const std::string & name() const override
Retrieve name of the service
Definition: Service.cpp:332
std::atomic::load
T load(T... args)
ThreadPoolSvc::m_threadPoolSize
int m_threadPoolSize
Size of the thread pool allocated.
Definition: ThreadPoolSvc.h:74
std::thread::hardware_concurrency
T hardware_concurrency(T... args)
ON_DEBUG
#define ON_DEBUG
Definition: ThreadPoolSvc.cpp:21
ThreadPoolSvc::m_barrier
std::unique_ptr< boost::barrier > m_barrier
Barrier used to synchronization thread init tasks.
Definition: ThreadPoolSvc.h:80
genconfuser.verbose
verbose
Definition: genconfuser.py:29
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:20
std::ostringstream
STL class.
StatusCode::isFailure
bool isFailure() const
Definition: StatusCode.h:129
ThreadInitTask
Special TBB task used by ThreadPoolSvc to wrap execution of IThreadInitTools.
Definition: ThreadInitTask.h:30
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
ThreadPoolSvc::m_arena
tbb::task_arena m_arena
TBB task arena to run all algorithms.
Definition: ThreadPoolSvc.h:86
std::ostringstream::str
T str(T... args)
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator
Definition: Service.cpp:335
Service::terminate
StatusCode terminate() override
Definition: Service.h:61