RateControl

This commit is contained in:
2026-07-14 02:27:33 +03:00
parent 4f6d2d0801
commit 1ca9fc477b
19 changed files with 879 additions and 146 deletions
+9 -4
View File
@@ -89,8 +89,8 @@ public class AutoList<T, ST> : IEnumerable<T>, ICollection, ICollection<T>
/// <returns>Array</returns>
public T[] ToArray()
{
// list.OrderBy()
return list.ToArray();
lock (syncRoot)
return list.ToArray();
}
/// <summary>
@@ -242,7 +242,11 @@ public class AutoList<T, ST> : IEnumerable<T>, ICollection, ICollection<T>
/// </summary>
public int Count
{
get { return list.Count; }
get
{
lock (syncRoot)
return list.Count;
}
}
public bool IsSynchronized => (list as ICollection).IsSynchronized;
@@ -256,7 +260,8 @@ public class AutoList<T, ST> : IEnumerable<T>, ICollection, ICollection<T>
/// <param name="value">Item to check if exists</param>
public bool Contains(T value)
{
return list.Contains(value);
lock (syncRoot)
return list.Contains(value);
}
/// <summary>