Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/06/12 16:11:36 (13 years ago)
Author:
svonolfe
Message:

Adapted MPI operators (#1542)

Location:
branches/MPI/HeuristicLab.Operators.MPISupport/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/MPI/HeuristicLab.Operators.MPISupport/3.3/MPIHelper.cs

    r7544 r7566  
    2727    }
    2828
    29     public static void Execute(IAtomicOperation op, CancellationToken cancellationToken) {
     29    public static void Execute(IAtomicOperation op) {
    3030      IOperation next;
    3131      OperationCollection coll;
     
    3636
    3737      while (executionStack.Count > 0) {
    38         cancellationToken.ThrowIfCancellationRequested();
    39 
    4038        next = executionStack.Pop();
    4139        if (next is OperationCollection) {
     
    4644          operation = (IAtomicOperation)next;
    4745          try {
    48             next = operation.Operator.Execute((IExecutionContext)operation, cancellationToken);
     46            next = operation.Operator.Execute((IExecutionContext)operation, new CancellationToken());
    4947          }
    5048          catch (Exception ex) {
  • branches/MPI/HeuristicLab.Operators.MPISupport/3.3/MPISolutionsCreator.cs

    r7544 r7566  
    2929using System.Collections.Generic;
    3030using MPI;
     31using System;
    3132
    3233namespace HeuristicLab.Operators.MPISupport {
     
    103104          if (creator != null) {
    104105            IAtomicOperation op = ExecutionContext.CreateOperation(creator, scopes[i]);
    105             MPIHelper.Execute(op, CancellationToken);
     106            MPIHelper.Execute(op);
    106107          }
    107108
    108109          if (evaluator != null) {
    109110            IAtomicOperation op = ExecutionContext.CreateOperation(evaluator, scopes[i]);
    110             MPIHelper.Execute(op, CancellationToken);
     111            MPIHelper.Execute(op);
    111112          }
    112113
  • branches/MPI/HeuristicLab.Operators.MPISupport/3.3/MPIUniformSubscopesProcessor.cs

    r7544 r7566  
    6464          for (int i = start; i < end; i++) {
    6565            IAtomicOperation op = ExecutionContext.CreateOperation(Operator, scopes[i]);
    66             MPIHelper.Execute(op, CancellationToken);
     66            MPIHelper.Execute(op);
    6767           
    6868            //SEND results to other clients
  • branches/MPI/HeuristicLab.Operators.MPISupport/3.3/Plugin.cs.frame

    r7544 r7566  
    2828  [Plugin("HeuristicLab.Operators.MPISupport", "3.3.4.$WCREV$")]
    2929  [PluginFile("HeuristicLab.Operators.MPISupport-3.3.dll", PluginFileType.Assembly)]
    30   [PluginDependency("HeuristicLab.MPInet", "1.0.0")]
    3130  [PluginDependency("HeuristicLab.Core", "3.3")]
    3231  [PluginDependency("HeuristicLab.Common", "3.3")]
Note: See TracChangeset for help on using the changeset viewer.