Space Engineers
Public Member Functions | Properties | List of all members
VRage.Collections.MyConcurrentPool< T > Class Template Reference

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)
 
Get ()
 
void Return (T instance)
 

Properties

int Count [get]
 
int InstancesCreated [get]
 

Detailed Description

Simple thread-safe pool. Can store external objects by calling return. Creates new instances when empty.

Type Constraints
T :new() 

Definition at line 14 of file MyConcurrentPool.cs.

Constructor & Destructor Documentation

VRage.Collections.MyConcurrentPool< T >.MyConcurrentPool ( int  defaultCapacity = 0,
bool  preallocate = false 
)
inline

Definition at line 21 of file MyConcurrentPool.cs.

Member Function Documentation

T VRage.Collections.MyConcurrentPool< T >.Get ( )
inline

Definition at line 60 of file MyConcurrentPool.cs.

void VRage.Collections.MyConcurrentPool< T >.Return ( instance)
inline

Definition at line 78 of file MyConcurrentPool.cs.

Property Documentation

Definition at line 37 of file MyConcurrentPool.cs.

int VRage.Collections.MyConcurrentPool< T >.InstancesCreated
get

Definition at line 53 of file MyConcurrentPool.cs.


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