|
Space Engineers
|
Simple thread-safe pool. Can store external objects by calling return. Creates new instances when empty. More...
Public Member Functions | |
| MyConcurrentPool (int defaultCapacity=0, bool preallocate=false) | |
| T | Get () |
| void | Return (T instance) |
Properties | |
| int | Count [get] |
| int | InstancesCreated [get] |
Simple thread-safe pool. Can store external objects by calling return. Creates new instances when empty.
| T | : | new() |
Definition at line 14 of file MyConcurrentPool.cs.
|
inline |
Definition at line 21 of file MyConcurrentPool.cs.
|
inline |
Definition at line 60 of file MyConcurrentPool.cs.
|
inline |
Definition at line 78 of file MyConcurrentPool.cs.
|
get |
Definition at line 37 of file MyConcurrentPool.cs.
|
get |
Definition at line 53 of file MyConcurrentPool.cs.
1.8.8