C# Class 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.
Afficher le fichier Open project: encog/encog-silverlight-core Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
TaskFinished ( PoolItem poolItem ) : void

Method Details

CreateTaskGroup() public méthode

Create a new task group.
public CreateTaskGroup ( ) : TaskGroup
Résultat TaskGroup

EngineConcurrency() public méthode

Construct a concurrency object.
public EngineConcurrency ( ) : System
Résultat System

ProcessTask() public méthode

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.
Résultat void

ProcessTask() public méthode

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.
Résultat void

SetMaxThreadsToCoreCount() public méthode

Set the max threads to the number of processors.
public SetMaxThreadsToCoreCount ( ) : void
Résultat void