Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.ParallelEngine/3.3/ParallelEngine.cs

    r14185 r14927  
    2626using HeuristicLab.Common;
    2727using HeuristicLab.Core;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HeuristicLab.Persistence;
    2929
    3030namespace HeuristicLab.ParallelEngine {
     
    3333  /// This engine is suitable for parallel processing on shared memory systems which provide multiple cores.
    3434  /// </summary>
    35   [StorableClass]
     35  [StorableType("c6ac27b2-211f-4f16-b406-ae38a15561a2")]
    3636  [Item("Parallel Engine", "Engine for parallel execution of algorithms using multiple threads (suitable for shared memory systems with multiple cores).")]
    3737  public class ParallelEngine : Engine {
     
    101101            try {
    102102              Parallel.ForEach(stacks, parallelOptions, Run);
    103             }
    104             catch (OperationCanceledException ex) {
     103            } catch (OperationCanceledException ex) {
    105104              OperationCollection remaining = new OperationCollection() { Parallel = true };
    106105              for (int i = 0; i < stacks.Length; i++) {
     
    125124          try {
    126125            next = operation.Operator.Execute((IExecutionContext)operation, cancellationToken);
    127           }
    128           catch (Exception ex) {
     126          } catch (Exception ex) {
    129127            executionStack.Push(operation);
    130128            if (ex is OperationCanceledException) throw ex;
Note: See TracChangeset for help on using the changeset viewer.