A static pool for Reference.
More...
|
static Reference | Get (IEzrObject? @object=null, AccessMod accessibilityModifiers=AccessMod.None, string name="") |
| Gets a freshly-reset reference from the pool or creates a new one.
|
|
static void | TryRelease (Reference reference) |
| Releases a reference to the pool.
|
|
|
static readonly ConcurrentQueue< Reference > | s_ezrObjectReferencePool = new() |
| The pool of references.
|
|
A static pool for Reference.
◆ Get()
Gets a freshly-reset reference from the pool or creates a new one.
- Parameters
-
object | The IEzrObject being referenced. |
accessibilityModifiers | The accessibility modifiers of the reference. |
name | The name of the reference. |
- Returns
- The reference.
◆ TryRelease()
static void EzrSquared.Runtime.ReferencePool.TryRelease |
( |
Reference | reference | ) |
|
|
static |
Releases a reference to the pool.
- Parameters
-
reference | The reference to release. |
The documentation for this class was generated from the following file:
- D:/Code/csharp/ezrSquared/src/Runtime/ReferencePool.cs