library of assembled shared sources

http://lass.cocamware.com

lass::util::NotParticipating< TaskType, ConsumerType, IdlePolicy > Class Template Reference
[Threading]

implementation of ThreadPool's ParticipationPolicy More...

#include <thread_pool.h>


Protected Member Functions

 NotParticipating (const ConsumerType &prototype)
 ~NotParticipating ()
const size_t numDynamicThreads (size_t numThreads) const
template<typename Queue >
bool participate (Queue &)


Detailed Description

template<typename TaskType, typename ConsumerType, typename IdlePolicy>
class lass::util::NotParticipating< TaskType, ConsumerType, IdlePolicy >

implementation of ThreadPool's ParticipationPolicy

See also:
ThreadPool
The control thread will not participate as producer thread at any time. Should be used when there's a continues stream of added tasks too a limited queue, and when completeAllTasks() is never called.

Definition at line 232 of file thread_pool.h.


Constructor & Destructor Documentation

template<typename TaskType , typename ConsumerType , typename IdlePolicy >
lass::util::NotParticipating< TaskType, ConsumerType, IdlePolicy >::NotParticipating ( const ConsumerType &  prototype  )  [inline, protected]

Definition at line 235 of file thread_pool.h.

template<typename TaskType , typename ConsumerType , typename IdlePolicy >
lass::util::NotParticipating< TaskType, ConsumerType, IdlePolicy >::~NotParticipating (  )  [inline, protected]

Definition at line 236 of file thread_pool.h.


Member Function Documentation

template<typename TaskType , typename ConsumerType , typename IdlePolicy >
const size_t lass::util::NotParticipating< TaskType, ConsumerType, IdlePolicy >::numDynamicThreads ( size_t  numThreads  )  const [inline, protected]

Definition at line 237 of file thread_pool.h.

template<typename TaskType , typename ConsumerType , typename IdlePolicy >
template<typename Queue >
bool lass::util::NotParticipating< TaskType, ConsumerType, IdlePolicy >::participate ( Queue &   )  [inline, protected]

Definition at line 238 of file thread_pool.h.


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

Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo