Table of Contents

Class EventQueue

Namespace
NUnit.Framework.Internal.Execution
Assembly
nunit.framework.dll

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

int

Methods

Dequeue(bool)

Removes the first element from the queue and returns it (or null).

public Event? Dequeue(bool blockWhenEmpty)

Parameters

blockWhenEmpty bool

If true and the queue is empty, the calling thread is blocked until either an element is enqueued, or Stop() is called.

Returns

Event
  • If the queue not emptythe first element.
  • otherwise, if blockWhenEmpty==false or Stop() has been callednull.

Enqueue(Event)

Enqueues the specified event

public void Enqueue(Event e)

Parameters

e Event

The event to enqueue.

Stop()

Stop processing of the queue

public void Stop()