diff options
| author | Marco Carvalho <marcolucio27@gmail.com> | 2024-05-08 08:53:25 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-08 13:53:25 +0200 |
| commit | a23d8cb92f3f1bb8dc144f4d9fb3fddee749feae (patch) | |
| tree | 16d30d83b140d0b67f10fca0f90e25eb70f5df78 /src/ARMeilleure | |
| parent | ab12fbe9634623b20ae82ee1a2cbb35b9db68fd3 (diff) | |
Replace "List.ForEach" for "foreach" (#6783)
* Replace "List.ForEach" for "foreach"
* dotnet format
* Update Ptc.cs
* Update GpuContext.cs
Diffstat (limited to 'src/ARMeilleure')
| -rw-r--r-- | src/ARMeilleure/Translation/PTC/Ptc.cs | 10 |
1 files changed, 8 insertions, 2 deletions
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(); |
