Changeset 9429
- Timestamp:
- 05/02/13 15:36:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ParallelEngine/3.3/ParallelEngine.cs
r9326 r9429 77 77 parallelOptions = new ParallelOptions(); 78 78 parallelOptions.MaxDegreeOfParallelism = DegreeOfParallelism; 79 parallelOptions.CancellationToken = cancellationToken; 79 80 Run(ExecutionStack); 80 81 } … … 101 102 Parallel.ForEach(stacks, parallelOptions, Run); 102 103 } 103 catch ( AggregateException ex) {104 catch (OperationCanceledException ex) { 104 105 OperationCollection remaining = new OperationCollection() { Parallel = true }; 105 106 for (int i = 0; i < stacks.Length; i++) {
Note: See TracChangeset
for help on using the changeset viewer.