From 3df111f743f15e8830e8f8d0046bde1b519848a4 Mon Sep 17 00:00:00 2001 From: "harald.martini@student.tugraz.at" <harald.martini@student.tugraz.at> Date: Mon, 9 Aug 2021 08:37:00 +0200 Subject: [PATCH] Removed comments from JobContainer --- .../Models/Simulation/Impl/JobContainer.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/VectoCore/VectoCore/Models/Simulation/Impl/JobContainer.cs b/VectoCore/VectoCore/Models/Simulation/Impl/JobContainer.cs index 0cdf7b3d48..51e657b772 100644 --- a/VectoCore/VectoCore/Models/Simulation/Impl/JobContainer.cs +++ b/VectoCore/VectoCore/Models/Simulation/Impl/JobContainer.cs @@ -118,8 +118,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl private readonly SummaryDataContainer _sumWriter; internal readonly List<RunEntry> Runs = new List<RunEntry>(); - //private readonly HashSet<int> _unfinishedRuns = new HashSet<int>(); - private readonly ConcurrentDictionary<int, byte> _unfinishedRuns = new ConcurrentDictionary<int, byte>(); + private readonly ConcurrentDictionary<int, byte> _unfinishedRuns = new ConcurrentDictionary<int, byte>(); //only key is used private ReaderWriterLockSlim _runsRwLock = new ReaderWriterLockSlim(); private ConcurrentDictionary<int, RunContainer> _runContainerMap = new ConcurrentDictionary<int, RunContainer>(); private static int _jobNumber; @@ -165,7 +164,6 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl _runsRwLock.EnterWriteLock(); Runs.Add(new RunEntry(run, this)); _unfinishedRuns[run.RunIdentifier] = Byte.MinValue; - //_unfinishedRuns.Add(run.RunIdentifier); } finally { _runsRwLock.ExitWriteLock(); } @@ -380,16 +378,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl get { return _unfinishedRuns.Count == 0; -/* - try { - - _runsRwLock.EnterReadLock(); - return AllCompletedUnsafe(); - } finally { - _runsRwLock.ExitReadLock(); - } -*/ } } -- GitLab