The StackPoolExBase<(Of <(<'T>)>)> type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | Clear |
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.
|
![]() | Equals | (Inherited from Object.) |
![]() | Exit |
Exit lock - derived classes use for locking
|
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | Get | |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Lock |
Virtual calls for locking
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Release | |
![]() | Reset |
Called when there are NO items in the pool
|
![]() | Set |
Called when there are items in the pool to indicate any threads can continue
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Wait |
Called when no items currently in the pool, will wait for items to be returned.
|