C# Класс UnityThreading.TaskDistributor

Наследование: DispatcherBase
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MaxAdditionalWorkerThreads int

Private Properties

Свойство Тип Описание
FillTasks void
TasksAdded void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
CheckAccessLimitation ( ) : void

Приватные методы

Метод Описание
FillTasks ( Dispatcher target ) : void
TasksAdded ( ) : void

Описание методов

CheckAccessLimitation() защищенный Метод

protected CheckAccessLimitation ( ) : void
Результат void

Dispose() публичный Метод

Disposes all TaskDistributor, worker threads, resources and remaining tasks.
public Dispose ( ) : void
Результат void

SpawnAdditionalWorkerThread() публичный Метод

public SpawnAdditionalWorkerThread ( ) : void
Результат void

Start() публичный Метод

Starts the TaskDistributor if its not currently running.
public Start ( ) : void
Результат void

TaskDistributor() публичный Метод

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
Результат System

TaskDistributor() публичный Метод

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.
Результат System

TaskDistributor() публичный Метод

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.
Результат System

Описание свойств

MaxAdditionalWorkerThreads публичное свойство

Amount of additional spawnable worker threads.
public int MaxAdditionalWorkerThreads
Результат int