Class ThreadDispatchQueue<T>
A single-thread dispatch queue.
Inheritance
System.Object
ThreadDispatchQueue<T>
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ThreadDispatchQueue<T> : IDispatchQueue<T> where T : class
Type Parameters
Name | Description |
---|---|
T |
Constructors
ThreadDispatchQueue(Action1<T>)
Initializes a new instance of the ThreadDispatchQueue<T> class.
Declaration
public ThreadDispatchQueue(Action1<T> action)
Parameters
Type | Name | Description |
---|---|---|
Action1<T> | action | The processing action. |
Properties
QueueCount
Gets the number of items in the queue.
Declaration
public long QueueCount { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
Destroy()
Destroys the queue.
Declaration
public void Destroy()
Enqueue(T)
Enqueues an item for processing.
Declaration
public void Enqueue(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item. |
WaitForCompletion()
Blocks until the queue is empty.
Declaration
public void WaitForCompletion()