Creates a new instance of the TaskDistributor. The task distributor will auto start his worker threads.

Namespace: UnityThreading
Assembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public TaskDistributor(
	string name,
	int workerThreadCount
)
Visual Basic
Public Sub New ( _
	name As String, _
	workerThreadCount As Integer _
)
Visual C++
public:
TaskDistributor(
	String^ name, 
	int workerThreadCount
)

Parameters

name
Type: System..::..String
workerThreadCount
Type: System..::..Int32
The number of worker threads, a value below one will create ProcessorCount x2 worker threads.

See Also