Replace "List.ForEach" for "foreach" (#6783)

* Replace "List.ForEach" for "foreach"

* dotnet format

* Update Ptc.cs

* Update GpuContext.cs
This commit is contained in:
Marco Carvalho authored and GitHub committed 2024-05-08 13:53:25 +02:00
1 parent ab12fbe963
commit a23d8cb92f
2 files changed
+16 -4

No files matched your search

+8 -2
View File
@@ -857,8 +857,14 @@ namespace ARMeilleure.Translation.PTC
Stopwatch sw = Stopwatch.StartNew();
threads.ForEach((thread) => thread.Start());
threads.ForEach((thread) => thread.Join());
foreach (var thread in threads)
{
thread.Start();
}
foreach (var thread in threads)
{
thread.Join();
}
threads.Clear();