Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/26/17 09:45:36 (7 years ago)
Author:
jkarder
Message:

#2258: refactored async methods

  • synchronously called IExecutables are now executed in the caller's thread
  • removed old synchronization code from unit tests
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Async/HeuristicLab.Problems.QuadraticAssignment.Algorithms/3.3/RobustTabooSearch.cs

    r13349 r15065  
    2323using System.Linq;
    2424using System.Threading;
    25 using System.Threading.Tasks;
    2625using HeuristicLab.Analysis;
    2726using HeuristicLab.Common;
     
    340339    }
    341340
    342     public override async Task StartAsync(CancellationToken cancellationToken) {
     341    public override void Start(CancellationToken cancellationToken) {
    343342      if (ExecutionState == ExecutionState.Prepared) {
    344343        int dim = Problem.Weights.Rows;
     
    352351        GlobalScope.Variables.Add(new Variable("MoveQualityMatrix", new DoubleMatrix(dim, dim)));
    353352      }
    354       await base.StartAsync(cancellationToken);
     353      base.Start(cancellationToken);
    355354    }
    356355
Note: See TracChangeset for help on using the changeset viewer.