Added support for parralell
This commit is contained in:
@@ -237,8 +237,8 @@ namespace Test_Merge
|
|||||||
case 0:
|
case 0:
|
||||||
//object lockObject = new object();
|
//object lockObject = new object();
|
||||||
//Main Zone
|
//Main Zone
|
||||||
//Parallel.For(0, mainZones[mainZoneId].Zones.Count, async i =>
|
Parallel.For(0, mainZones[mainZoneId].Zones.Count, async i =>
|
||||||
for (int i = 0; i < mainZones[mainZoneId].Zones.Count; i++)
|
//for (int i = 0; i < mainZones[mainZoneId].Zones.Count; i++)
|
||||||
{
|
{
|
||||||
DriverData data = mainZones[mainZoneId].Zones[i].Decode(new List<string>(drivers));
|
DriverData data = mainZones[mainZoneId].Zones[i].Decode(new List<string>(drivers));
|
||||||
mainResults.Add(data);
|
mainResults.Add(data);
|
||||||
@@ -270,7 +270,7 @@ namespace Test_Merge
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
DriverDataLogs[i].Add(data);
|
DriverDataLogs[i].Add(data);
|
||||||
}//);
|
});
|
||||||
break;
|
break;
|
||||||
//Next there could be a Title Zone and TrackInfoZone
|
//Next there could be a Title Zone and TrackInfoZone
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user