From a23d8cb92f3f1bb8dc144f4d9fb3fddee749feae Mon Sep 17 00:00:00 2001 From: Marco Carvalho Date: Wed, 8 May 2024 08:53:25 -0300 Subject: Replace "List.ForEach" for "foreach" (#6783) * Replace "List.ForEach" for "foreach" * dotnet format * Update Ptc.cs * Update GpuContext.cs --- src/ARMeilleure/Translation/PTC/Ptc.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/ARMeilleure') diff --git a/src/ARMeilleure/Translation/PTC/Ptc.cs b/src/ARMeilleure/Translation/PTC/Ptc.cs index 58f06534..f56bdce1 100644 --- a/src/ARMeilleure/Translation/PTC/Ptc.cs +++ b/src/ARMeilleure/Translation/PTC/Ptc.cs @@ -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(); -- cgit v1.2.3