move to new System.Threading.Lock type for better performance

This commit is contained in:
Daniyar Alpyspayev
2024-12-12 18:10:06 +05:00
parent b89877554c
commit 2614fecf8d
20 changed files with 30 additions and 26 deletions

View File

@@ -23,7 +23,7 @@ namespace MediaBrowser.Controller.Entities
/// </summary>
public class AggregateFolder : Folder
{
private readonly object _childIdsLock = new object();
private readonly Lock _childIdsLock = new();
/// <summary>
/// The _virtual children.

View File

@@ -21,7 +21,7 @@ namespace MediaBrowser.Controller.Entities
/// </summary>
public class UserRootFolder : Folder
{
private readonly object _childIdsLock = new object();
private readonly Lock _childIdsLock = new();
private List<Guid> _childrenIds = null;
/// <summary>