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