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.
예제 #1
0
 /// <summary>
 /// Construct a pool item.
 /// </summary>
 /// <param name="owner">The owner of this task.</param>
 /// <param name="task">The task to execute.</param>
 /// <param name="group">The group that this task belongs to.</param>
 public PoolItem(EngineConcurrency owner, IEngineTask task,  TaskGroup group)
 {
     this.owner = owner;
     this.task = task;
     this.group = group;
 }
예제 #2
0
 /// <summary>
 /// Construct a pool item.
 /// </summary>
 /// <param name="owner">The owner of this task.</param>
 /// <param name="task">The task to execute.</param>
 /// <param name="group">The group that this task belongs to.</param>
 public PoolItem(EngineConcurrency owner, IEngineTask task, TaskGroup group)
 {
     this.owner = owner;
     this.task  = task;
     this.group = group;
 }