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

Public Member Functions

void ApplyActionOnAllActives (Action< T > action)
 
 MyConcurrentObjectsPool (int baseCapacity)
 
bool AllocateOrCreate (out T item)
 Returns true when new item was allocated More...
 
Allocate (bool nullAllowed=false)
 
void Deallocate (T item)
 
void MarkForDeallocate (T item)
 
void DeallocateAllMarked ()
 
void DeallocateAll ()
 

Properties

int ActiveCount [get]
 
int BaseCapacity [get]
 
int Capacity [get]
 

Detailed Description

Type Constraints
T :class 
T :new() 

Definition at line 9 of file MyConcurrentObjectsPool.cs.

Constructor & Destructor Documentation

Definition at line 69 of file MyConcurrentObjectsPool.cs.

Member Function Documentation

T VRage.Generics.MyConcurrentObjectsPool< T >.Allocate ( bool  nullAllowed = false)
inline

Definition at line 104 of file MyConcurrentObjectsPool.cs.

bool VRage.Generics.MyConcurrentObjectsPool< T >.AllocateOrCreate ( out T  item)
inline

Returns true when new item was allocated

Definition at line 88 of file MyConcurrentObjectsPool.cs.

void VRage.Generics.MyConcurrentObjectsPool< T >.ApplyActionOnAllActives ( Action< T >  action)
inline

Definition at line 19 of file MyConcurrentObjectsPool.cs.

void VRage.Generics.MyConcurrentObjectsPool< T >.Deallocate ( item)
inline

Definition at line 122 of file MyConcurrentObjectsPool.cs.

void VRage.Generics.MyConcurrentObjectsPool< T >.DeallocateAll ( )
inline

Definition at line 157 of file MyConcurrentObjectsPool.cs.

void VRage.Generics.MyConcurrentObjectsPool< T >.DeallocateAllMarked ( )
inline

Definition at line 144 of file MyConcurrentObjectsPool.cs.

void VRage.Generics.MyConcurrentObjectsPool< T >.MarkForDeallocate ( item)
inline

Definition at line 133 of file MyConcurrentObjectsPool.cs.

Property Documentation

int VRage.Generics.MyConcurrentObjectsPool< T >.ActiveCount
get

Definition at line 31 of file MyConcurrentObjectsPool.cs.

int VRage.Generics.MyConcurrentObjectsPool< T >.BaseCapacity
get

Definition at line 42 of file MyConcurrentObjectsPool.cs.

Definition at line 54 of file MyConcurrentObjectsPool.cs.


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