C# Класс Encog.Util.Concurrency.Job.ConcurrentJob

A concurrent JOB, works well for multicore machines. Provides the low-level tools to create a concurrent job.
Наследование: IMultiThreadable
Показать файл Открыть проект

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

Метод Описание
LoadWorkload ( ) : int

Load the workload that this job must process.

PerformJobUnit ( JobUnitContext context ) : void

Perform the actual workload.

Process ( ) : void

Start the job, block until its done.

ReportStatus ( JobUnitContext context, String status ) : void

Recieve status reports.

RequestNextTask ( ) : Object

Called by a thread to get the next task.

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

Метод Описание
ConcurrentJob ( IStatusReportable report ) : System

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

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

protected ConcurrentJob ( IStatusReportable report ) : System
report IStatusReportable
Результат System

LoadWorkload() публичный абстрактный Метод

Load the workload that this job must process.
public abstract LoadWorkload ( ) : int
Результат int

PerformJobUnit() публичный абстрактный Метод

Perform the actual workload.
public abstract PerformJobUnit ( JobUnitContext context ) : void
context JobUnitContext The workload to execute.
Результат void

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

Start the job, block until its done.
public Process ( ) : void
Результат void

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

Recieve status reports.
public ReportStatus ( JobUnitContext context, String status ) : void
context JobUnitContext The context for this job.
status String The current status for this job.
Результат void

RequestNextTask() публичный абстрактный Метод

Called by a thread to get the next task.
public abstract RequestNextTask ( ) : Object
Результат Object