C# Class UnityThreading.TaskDistributor

Inheritance: DispatcherBase
Afficher le fichier Open project: ufz-vislab/html-ui-unity Class Usage Examples

Méthodes publiques

Свойство Type Description
MaxAdditionalWorkerThreads int

Private Properties

Свойство Type Description
FillTasks void
TasksAdded void

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes all TaskDistributor, worker threads, resources and remaining tasks.

SpawnAdditionalWorkerThread ( ) : void
Start ( ) : void

Starts the TaskDistributor if its not currently running.

TaskDistributor ( string name ) : System

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

TaskDistributor ( string name, int workerThreadCount ) : System

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

TaskDistributor ( string name, int workerThreadCount, bool autoStart ) : System

Creates a new instance of the TaskDistributor.

Méthodes protégées

Méthode Description
CheckAccessLimitation ( ) : void

Private Methods

Méthode Description
FillTasks ( Dispatcher target ) : void
TasksAdded ( ) : void

Method Details

CheckAccessLimitation() protected méthode

protected CheckAccessLimitation ( ) : void
Résultat void

Dispose() public méthode

Disposes all TaskDistributor, worker threads, resources and remaining tasks.
public Dispose ( ) : void
Résultat void

SpawnAdditionalWorkerThread() public méthode

public SpawnAdditionalWorkerThread ( ) : void
Résultat void

Start() public méthode

Starts the TaskDistributor if its not currently running.
public Start ( ) : void
Résultat void

TaskDistributor() public méthode

Creates a new instance of the TaskDistributor with ProcessorCount x2 worker threads. The task distributor will auto start his worker threads.
public TaskDistributor ( string name ) : System
name string
Résultat System

TaskDistributor() public méthode

Creates a new instance of the TaskDistributor. The task distributor will auto start his worker threads.
public TaskDistributor ( string name, int workerThreadCount ) : System
name string
workerThreadCount int The number of worker threads, a value below one will create ProcessorCount x2 worker threads.
Résultat System

TaskDistributor() public méthode

Creates a new instance of the TaskDistributor.
public TaskDistributor ( string name, int workerThreadCount, bool autoStart ) : System
name string
workerThreadCount int The number of worker threads, a value below one will create ProcessorCount x2 worker threads.
autoStart bool Should the instance auto start the worker threads.
Résultat System

Property Details

MaxAdditionalWorkerThreads public_oe property

Amount of additional spawnable worker threads.
public int MaxAdditionalWorkerThreads
Résultat int