BackgroundThreadQueueMechanism Enumeration |
An enumeration of the different mechanisms that the BackgroundThreadQueue can use.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public enum BackgroundThreadQueueMechanism
Public Enumeration BackgroundThreadQueueMechanism
public enum class BackgroundThreadQueueMechanism
type BackgroundThreadQueueMechanism
Members
| Member name | Value | Description |
---|
| Queue | 0 |
Items are processed one-at-a-time on the background thread. Stopping the queue will clear unprocessed items
from the queue. Communication between the calling thread and background thread is via a WaitHandle.
|
| QueueWithNoBlock | 1 |
As per Queue but the background thread continuously polls the queue for more entries to process,
relinquishing its time slice if there is nothing to process. This is only supported under Windows, when running
on Mono this is translated into a Queue.
|
| SingleThread | 2 |
Forces all items to be processed on the thread that adds them. This is forced on internally during unit tests.
|
| ThreadPool | 3 |
Items are sent to the ThreadPool for processing, so they are processed in parallel. Stopping the queue will
not stop processing of items that are queued on the ThreadPool. The creator of the queue can control how
many items are processed in parallel.
|
See Also