Public Member Functions | Protected Attributes

InkStaticPool_r< C > Class Template Reference

#include <InkPool_r.h>

Inherits InkStaticPool< C >.

Collaboration diagram for InkStaticPool_r< C >:
Collaboration graph
[legend]

Public Member Functions

 InkStaticPool_r (int size)
virtual ~InkStaticPool_r ()
C * get ()
bool put (C *newObj)
void put_or_delete (C *newObj)
ProxyMutexgetMutex ()

Protected Attributes

Ptr< ProxyMutexmutex

Detailed Description

template<class C>
class InkStaticPool_r< C >

Definition at line 30 of file InkPool_r.h.


Constructor & Destructor Documentation

template<class C >
InkStaticPool_r< C >::InkStaticPool_r ( int  size  )  [inline]

Definition at line 33 of file InkPool_r.h.

References InkStaticPool_r< C >::mutex, and new_ProxyMutex().

template<class C >
virtual InkStaticPool_r< C >::~InkStaticPool_r (  )  [inline, virtual]

Member Function Documentation

template<class C >
C* InkStaticPool_r< C >::get ( void   )  [inline]

Reimplemented from InkStaticPool< C >.

Definition at line 43 of file InkPool_r.h.

References InkStaticPool_r< C >::mutex, MUTEX_LOCK, and this_ethread().

template<class C >
ProxyMutex* InkStaticPool_r< C >::getMutex (  )  [inline]

Definition at line 61 of file InkPool_r.h.

References InkStaticPool_r< C >::mutex.

template<class C >
bool InkStaticPool_r< C >::put ( C *  newObj  )  [inline]

Reimplemented from InkStaticPool< C >.

Definition at line 49 of file InkPool_r.h.

References InkStaticPool_r< C >::mutex, MUTEX_LOCK, and this_ethread().

Referenced by InkStaticPool_r< C >::put_or_delete().

template<class C >
void InkStaticPool_r< C >::put_or_delete ( C *  newObj  )  [inline]

Reimplemented from InkStaticPool< C >.

Definition at line 55 of file InkPool_r.h.

References InkStaticPool_r< C >::put().


Field Documentation

template<class C >
Ptr<ProxyMutex> InkStaticPool_r< C >::mutex [protected]

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