Pool< Node > Class Template Reference
[Kernel Module]

#include <pool.h>

Inheritance diagram for Pool< Node >:

List< Node >

List of all members.


Detailed Description

template<class Node>
class Pool< Node >

Pool.

Node have to be only PoolNode derived class!

Public Member Functions

 Pool (uint_t init_count=1, uint_t increment=1, uint_t max_count=0)
virtual ~Pool ()
void Put (Node *prev)
Node * Get ()
uint_t GetPooledCount ()
uint_t GetCreatedCount ()

Private Member Functions

void AllocateNodes (uint_t count)

Private Attributes

uint_t increment
uint_t max_count
uint_t created_count
uint_t pooled_count
Mutexmutex
Conditionempty_cond


Constructor & Destructor Documentation

template<class Node>
Pool< Node >::Pool ( uint_t  init_count = 1,
uint_t  increment = 1,
uint_t  max_count = 0 
) [inline]

template<class Node>
Pool< Node >::~Pool (  )  [inline, virtual]


Member Function Documentation

template<class Node>
void Pool< Node >::Put ( Node *  prev  )  [inline]

template<class Node>
Node * Pool< Node >::Get (  )  [inline]

template<class Node>
uint_t Pool< Node >::GetPooledCount (  )  [inline]

template<class Node>
uint_t Pool< Node >::GetCreatedCount (  )  [inline]

template<class Node>
void Pool< Node >::AllocateNodes ( uint_t  count  )  [inline, private]


Member Data Documentation

template<class Node>
uint_t Pool< Node >::increment [private]

template<class Node>
uint_t Pool< Node >::max_count [private]

template<class Node>
uint_t Pool< Node >::created_count [private]

template<class Node>
uint_t Pool< Node >::pooled_count [private]

template<class Node>
Mutex* Pool< Node >::mutex [private]

template<class Node>
Condition* Pool< Node >::empty_cond [private]


The documentation for this class was generated from the following file:
Generated on Sat Oct 20 14:47:34 2007 for Dark Oberon by  doxygen 1.5.3