ThreadSafeListT Class

This list allows for iterating through the list while object can be removed from the list. Once an object has been removed, is garenteed not to be called again by a seperate thread.

Definition

Namespace: SnapDB.Threading
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class ThreadSafeList<T> : IEnumerable<T>, 
	IEnumerable
Inheritance
Object    ThreadSafeListT
Implements
IEnumerableT, IEnumerable

Type Parameters

T
The type of elements in the list.

Constructors

ThreadSafeListT Creates a new ThreadSafeListT.

Methods

Add Adds the supplied item to the list.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
ForEach Calls a foreach iterator on the supplied action.
GetEnumerator Returns an enumerator that iterates through the collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Remove Removes an item from the list.
RemoveAndWait Removes an item from the list. This method will block until the item has successfully been removed and will no longer show up in the iterator. DO NOT call this function from within a ForEach loop as it will block indefinately since the for each loop reads all items.
RemoveIf Removes the specified item if the lambda expression is true.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also