Click or drag to resize

ProcessQueue<T> .ThreadingMode Property

Gets the current QueueThreadingMode for the ProcessQueue<T> (i.e., synchronous or asynchronous).

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.239-beta+5928cebde0dd955df84e791f5ea67acbd192773e
Syntax
public virtual QueueThreadingMode ThreadingMode { get; }
View Source

Property Value

QueueThreadingMode
Remarks

The maximum number of processing threads determines the QueueThreadingMode.

If the maximum threads are set to one, item processing will be synchronous (i.e., ThreadingMode = Synchronous).

If the maximum threads are more than one, item processing will be asynchronous (i.e., ThreadingMode = Asynchronous).

Note that for asynchronous ProcessQueue<T>, the processing interval will control how many threads are spawned at once. If items are processed faster than the specified processing interval, only one process thread will ever be spawned at a time. To ensure multiple threads are utilized to ProcessQueue<T> items, lower the process interval (minimum process interval is 1 millisecond).

See Also