OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
OpenSim.Framework.Pool< T > Class Template Reference

Naive pool implementation. More...

Public Member Functions

 Pool (Func< T > createFunction, int maxSize)
 
GetObject ()
 
void ReturnObject (T obj)
 

Properties

int Count [get]
 Number of objects in the pool. More...
 

Detailed Description

Naive pool implementation.

Currently assumes that objects are in a useable state when returned.

Definition at line 39 of file Pool.cs.

Constructor & Destructor Documentation

OpenSim.Framework.Pool< T >.Pool ( Func< T >  createFunction,
int  maxSize 
)
inline

Definition at line 62 of file Pool.cs.

Member Function Documentation

T OpenSim.Framework.Pool< T >.GetObject ( )
inline

Definition at line 69 of file Pool.cs.

void OpenSim.Framework.Pool< T >.ReturnObject ( obj)
inline

Definition at line 80 of file Pool.cs.

Property Documentation

int OpenSim.Framework.Pool< T >.Count
get

Number of objects in the pool.

Definition at line 45 of file Pool.cs.


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