The StackPoolEx<(Of <(<'T>)>)> type exposes the following members.

Constructors

Methods

  NameDescription
Public methodClear
If objects contain native handles be sure the objects have finalizers to handle that case before this is used. This just clears the entire pool. It does not call dispose or anything else. Clearing will make the objects that are left in the pool, not reachable so they will be garbage collected at a future point. It is possible after this is called that there are items still in use and they will be released back to the pool by the user code when it is done with the object. (So even after clearing you might discover objects back in the pool) This also clears all internal datastructures that were being pooled to store objects in the pool and objects it expects to return to the pool. Also requests to get new objects will allocate them.
(Inherited from StackPoolExBase<(Of <(<'T>)>)>.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodExit (Overrides StackPoolExBase<(Of <(<'T>)>)>..::..Exit()()()().)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGet (Inherited from StackPoolExBase<(Of <(<'T>)>)>.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodLock (Overrides StackPoolExBase<(Of <(<'T>)>)>..::..Lock(Boolean%).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRelease (Inherited from StackPoolExBase<(Of <(<'T>)>)>.)
Protected methodReset
Called when there are NO items in the pool
(Overrides StackPoolExBase<(Of <(<'T>)>)>..::..Reset()()()().)
Protected methodSet
Called when there are items in the pool to indicate any threads can continue
(Overrides StackPoolExBase<(Of <(<'T>)>)>..::..Set()()()().)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodWait
Called when no items currently in the pool, will wait for items to be returned.
(Overrides StackPoolExBase<(Of <(<'T>)>)>..::..Wait()()()().)

Properties

  NameDescription
Public propertyAllocatedObjects (Inherited from StackPoolExBase<(Of <(<'T>)>)>.)
Public propertyWaitCount
Diagnostic count to determine how many times the pool needed to wait for more objects. For some uses where no waits are desired the default pool size should be increased
Protected propertyWaitForObjects (Inherited from StackPoolExBase<(Of <(<'T>)>)>.)

See Also