The Gaudi Framework  v29r0 (ff2e7097)
boost::threadpool::resize_controller< Pool > Class Template Reference

SizePolicyController which allows resizing. More...

#include <src/threadpool/boost/threadpool/size_policies.hpp>

Public Member Functions

 resize_controller (size_policy_type &policy, shared_ptr< Pool > pool)
 
bool resize (size_t worker_count)
 

Private Types

typedef Pool::size_policy_type size_policy_type
 

Private Attributes

reference_wrapper< size_policy_typem_policy
 
shared_ptr< Pool > m_pool
 to make sure that the pool is alive (the policy pointer is valid) as long as the controller exists More...
 

Detailed Description

template<typename Pool>
class boost::threadpool::resize_controller< Pool >

SizePolicyController which allows resizing.

Parameters
PoolThe pool's core type.

Definition at line 43 of file size_policies.hpp.

Member Typedef Documentation

template<typename Pool >
typedef Pool::size_policy_type boost::threadpool::resize_controller< Pool >::size_policy_type
private

Definition at line 45 of file size_policies.hpp.

Constructor & Destructor Documentation

template<typename Pool >
boost::threadpool::resize_controller< Pool >::resize_controller ( size_policy_type policy,
shared_ptr< Pool >  pool 
)
inline

Definition at line 50 of file size_policies.hpp.

51  : m_policy(policy)
52  , m_pool(pool)
53  {
54  }
shared_ptr< Pool > m_pool
to make sure that the pool is alive (the policy pointer is valid) as long as the controller exists ...
reference_wrapper< size_policy_type > m_policy

Member Function Documentation

template<typename Pool >
bool boost::threadpool::resize_controller< Pool >::resize ( size_t  worker_count)
inline

Definition at line 56 of file size_policies.hpp.

57  {
58  return m_policy.get().resize(worker_count);
59  }
reference_wrapper< size_policy_type > m_policy

Member Data Documentation

template<typename Pool >
reference_wrapper<size_policy_type> boost::threadpool::resize_controller< Pool >::m_policy
private

Definition at line 46 of file size_policies.hpp.

template<typename Pool >
shared_ptr<Pool> boost::threadpool::resize_controller< Pool >::m_pool
private

to make sure that the pool is alive (the policy pointer is valid) as long as the controller exists

Definition at line 47 of file size_policies.hpp.


The documentation for this class was generated from the following file: