- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.ParallelEngine/3.3/ParallelEngine.cs
r14185 r14927 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.ParallelEngine { … … 33 33 /// This engine is suitable for parallel processing on shared memory systems which provide multiple cores. 34 34 /// </summary> 35 [Storable Class]35 [StorableType("c6ac27b2-211f-4f16-b406-ae38a15561a2")] 36 36 [Item("Parallel Engine", "Engine for parallel execution of algorithms using multiple threads (suitable for shared memory systems with multiple cores).")] 37 37 public class ParallelEngine : Engine { … … 101 101 try { 102 102 Parallel.ForEach(stacks, parallelOptions, Run); 103 } 104 catch (OperationCanceledException ex) { 103 } catch (OperationCanceledException ex) { 105 104 OperationCollection remaining = new OperationCollection() { Parallel = true }; 106 105 for (int i = 0; i < stacks.Length; i++) { … … 125 124 try { 126 125 next = operation.Operator.Execute((IExecutionContext)operation, cancellationToken); 127 } 128 catch (Exception ex) { 126 } catch (Exception ex) { 129 127 executionStack.Push(operation); 130 128 if (ex is OperationCanceledException) throw ex;
Note: See TracChangeset
for help on using the changeset viewer.