Class EventQueue
Implements a queue of work items each of which is queued as a WaitCallback.
public class EventQueue
- Inheritance
-
EventQueue
- Inherited Members
Constructors
EventQueue()
public EventQueue()
Properties
Count
Gets the count of items in the queue.
public int Count { get; }
Property Value
Methods
Dequeue(bool)
Removes the first element from the queue and returns it (or null).
public Event? Dequeue(bool blockWhenEmpty)
Parameters
blockWhenEmpty
boolIf true and the queue is empty, the calling thread is blocked until either an element is enqueued, or Stop() is called.
Returns
Enqueue(Event)
Enqueues the specified event
public void Enqueue(Event e)
Parameters
e
EventThe event to enqueue.
Stop()
Stop processing of the queue
public void Stop()