C# Class Encog.Util.Concurrency.EngineConcurrency

Inheritance: IMultiThreadable
Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method 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

Method Description
TaskFinished ( PoolItem poolItem ) : void

Method Details

CreateTaskGroup() public method

Create a new task group.
public CreateTaskGroup ( ) : TaskGroup
return TaskGroup

EngineConcurrency() public method

Construct a concurrency object.
public EngineConcurrency ( ) : System
return System

ProcessTask() public method

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.
return void

ProcessTask() public method

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.
return void

SetMaxThreadsToCoreCount() public method

Set the max threads to the number of processors.
public SetMaxThreadsToCoreCount ( ) : void
return void