* Stylecop Rules and Fixes
This commit is contained in:
Qstick
2020-01-03 07:49:24 -05:00
committed by GitHub
parent 63d669178d
commit f77a2feeef
1307 changed files with 8704 additions and 7404 deletions
@@ -6,9 +6,9 @@ namespace NzbDrone.Test.Common
{
public class ConcurrencyCounter
{
private readonly object _mutex = new object();
private readonly Dictionary<int, int> _threads = new Dictionary<int, int>();
private int _items;
readonly object _mutex = new object();
readonly Dictionary<int, int> _threads = new Dictionary<int, int>();
public int MaxThreads => _threads.Count;
@@ -30,7 +30,6 @@ namespace NzbDrone.Test.Common
int threadId = Thread.CurrentThread.ManagedThreadId;
lock (_mutex)
{
_threads[threadId] = 1;
}
@@ -54,4 +53,4 @@ namespace NzbDrone.Test.Common
}
}
}
}
}