Photon Server API Documentation
v5.0RC1
Simple implementation of pool for fiber actions More...
Public Member Functions | |
| T | Rent (Func< T > factory) |
| returns an instance of T which might be used and should be returned Once using Return method More... | |
| void | Return (T rented) |
| returns rented object to pool More... | |
Static Public Member Functions | |
| static ObjectPool< T > | Create (int maxElements) |
Static Public Attributes | |
| static readonly ObjectPool< T > | Instance = new ObjectPool<T>(100) |
| Reference for default pool More... | |
Protected Member Functions | |
| ObjectPool (int max) | |
| Creates new pool with min and max parameters More... | |
Simple implementation of pool for fiber actions
| T |
| T | : | class |
|
inlineprotected |
Creates new pool with min and max parameters
| max |
|
inlinestatic |
| maxElements |
|
inline |
returns an instance of T which might be used and should be returned Once using Return method
|
inline |
returns rented object to pool
| rented |
|
static |
Reference for default pool