Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/10/12 13:10:57 (11 years ago)
Author:
svonolfe
Message:

Improved coordination between optimization and simulation thread (#1955)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DynamicVehicleRouting/HeuristicLab.PDPSimulation/3.3/PickupDeliverySimulation.cs

    r8670 r8779  
    536536
    537537    private void WaitForOptimizationExit() {
    538       if (Optimization != null)
    539         Optimization.WaitForExit();
     538      if (Optimization != null) {
     539        while (Optimization.Running()) {
     540          Thread.Sleep(100);
     541          SignalWaitHandle();
     542        }
     543        Optimization.Exit();
     544      }
    540545    }
    541546
Note: See TracChangeset for help on using the changeset viewer.