Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 0005ee6d authored by Harald Martini's avatar Harald Martini
Browse files

added lock to Results in DeclarationReport

parent c59d2caf
Branches
Tags
No related merge requests found
......@@ -164,8 +164,10 @@ namespace TUGraz.VectoCore.OutputData
//runData.VehicleData.VehicleClass,
PassengerCount = runData.VehicleData.PassengerCount
};
lock (Results) {
Results.Add(entry);
}
DoStoreResult(entry, runData, modData);
}
......@@ -174,11 +176,14 @@ namespace TUGraz.VectoCore.OutputData
protected virtual IEnumerable<T> OrderedResults
{
get {
get
{
lock (Results) {
return Results.OrderBy(x => x.VehicleClass).ThenBy(x => x.FuelMode).ThenBy(x => x.Mission)
.ThenBy(x => x.LoadingType);
}
}
}
/// <summary>
/// Adds the result of one run for the specific mission and loading.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment