library of assembled shared sources

http://lass.cocamware.com

lass::util::Spinning Class Reference
[Threading]

implementation of ThreadPool's IdlePolicy More...

#include <thread_pool.h>


Protected Member Functions

 Spinning ()
 ~Spinning ()
void sleepProducer ()
void wakeProducer ()
void sleepConsumer ()
void wakeConsumer ()
void wakeAllConsumers ()


Detailed Description

implementation of ThreadPool's IdlePolicy

See also:
ThreadPool
Idle threads don't go to sleep, but spin until a condition is met. This results in a faster response but it should only be used if each thread (including the control thread) can have it's own cpu or core.

Definition at line 158 of file thread_pool.h.


Constructor & Destructor Documentation

lass::util::Spinning::Spinning (  )  [inline, protected]

Definition at line 161 of file thread_pool.h.

lass::util::Spinning::~Spinning (  )  [inline, protected]

Definition at line 162 of file thread_pool.h.


Member Function Documentation

void lass::util::Spinning::sleepProducer (  )  [inline, protected]

Definition at line 163 of file thread_pool.h.

void lass::util::Spinning::wakeProducer (  )  [inline, protected]

Definition at line 164 of file thread_pool.h.

void lass::util::Spinning::sleepConsumer (  )  [inline, protected]

Definition at line 165 of file thread_pool.h.

void lass::util::Spinning::wakeConsumer (  )  [inline, protected]

Definition at line 166 of file thread_pool.h.

void lass::util::Spinning::wakeAllConsumers (  )  [inline, protected]

Definition at line 167 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