Creates a new instance of the TaskDistributor.
Namespace: UnityThreadingAssembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public TaskDistributor( string name, int workerThreadCount, bool autoStart ) |
Visual Basic |
---|
Public Sub New ( _ name As String, _ workerThreadCount As Integer, _ autoStart As Boolean _ ) |
Visual C++ |
---|
public: TaskDistributor( String^ name, int workerThreadCount, bool autoStart ) |
Parameters
- name
- Type: System..::..String
- workerThreadCount
- Type: System..::..Int32
The number of worker threads, a value below one will create ProcessorCount x2 worker threads.
- autoStart
- Type: System..::..Boolean
Should the instance auto start the worker threads.