C# Класс Encog.Engine.Concurrency.Job.EngineConcurrency

This class abstracts thread pools, and potentially grids and other types of concurrency. It is used by other classes inside of Encog to allow tasks to be executed efficiently on multicore machines.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateTaskGroup ( ) : TaskGroup

Create a new task group.

EngineConcurrency ( ) : System

Construct a concurrency object.

ProcessTask ( IEngineTask task ) : void

Process the specified task. It will be processed either now, or queued to process on the thread pool. No group is assigned.

ProcessTask ( IEngineTask task, TaskGroup group ) : void

Process the specified task. It will be processed either now, or queued to process on the thread pool.

SetMaxThreadsToCoreCount ( ) : void

Set the max threads to the number of processors.

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

Метод Описание
TaskFinished ( PoolItem poolItem ) : void

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

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

Create a new task group.
public CreateTaskGroup ( ) : TaskGroup
Результат TaskGroup

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

Construct a concurrency object.
public EngineConcurrency ( ) : System
Результат System

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

Process the specified task. It will be processed either now, or queued to process on the thread pool. No group is assigned.
public ProcessTask ( IEngineTask task ) : void
task IEngineTask The task to process.
Результат void

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

Process the specified task. It will be processed either now, or queued to process on the thread pool.
public ProcessTask ( IEngineTask task, TaskGroup group ) : void
task IEngineTask The task to process.
group TaskGroup The group this task belongs to.
Результат void

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

Set the max threads to the number of processors.
public SetMaxThreadsToCoreCount ( ) : void
Результат void