Photon Quantum 3.0.0

Static Public Member Functions | List of all members
Quantum.Profiling.QuantumGraphPool< T > Class Template Reference

A pool for QuantumGraphTimer objects. More...

Static Public Member Functions

static T Get ()
 Get an item from the pool or create a new one if the pool is empty. More...
 
static void Return (T item)
 Return an item to the pool. More...
 

Detailed Description

A pool for QuantumGraphTimer objects.

Template Parameters
TType
Type Constraints
T :new() 

Member Function Documentation

◆ Get()

static T Quantum.Profiling.QuantumGraphPool< T >.Get ( )
inlinestatic

Get an item from the pool or create a new one if the pool is empty.

Returns
Pooled item

◆ Return()

static void Quantum.Profiling.QuantumGraphPool< T >.Return ( item)
inlinestatic

Return an item to the pool.

Parameters
itemItem to return to the pool