|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Simple object pool. Based on ThreadPool and few other classes * The pool will ignore overflow and return null if empty. *
Constructor Summary | |
---|---|
SimplePool(int max) |
Property Summary | |
---|---|
int | Max |
Method Summary | |
---|---|
object |
get() Get an object from the pool, null if the pool is empty. |
void |
put(object o) Add the object to the pool, silent nothing if the pool is full |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Constructor Detail |
---|
public SimplePool(int max)
Property Detail |
---|
public int Max
Method Detail |
---|
public object get()
Get an object from the pool, null if the pool is empty.
public void put(object o)
Add the object to the pool, silent nothing if the pool is full
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |