aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorDaniyar Alpyspayev <daniyara@thereachagency.com>2024-12-12 18:10:06 +0500
committerDaniyar Alpyspayev <daniyara@thereachagency.com>2024-12-12 18:10:06 +0500
commit2614fecf8df6e04b0d0a2b33722923c239ed0f91 (patch)
tree815c5c68d5403423e28a6daf29fe09b1f0b361e5 /Emby.Server.Implementations/Library/LibraryManager.cs
parentb89877554cf1a655251958e19439926ac99c91f7 (diff)
move to new System.Threading.Lock type for better performance
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index 28f7ed659..2d1af82b3 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -81,8 +81,8 @@ namespace Emby.Server.Implementations.Library
/// <summary>
/// The _root folder sync lock.
/// </summary>
- private readonly object _rootFolderSyncLock = new object();
- private readonly object _userRootFolderSyncLock = new object();
+ private readonly Lock _rootFolderSyncLock = new();
+ private readonly Lock _userRootFolderSyncLock = new();
private readonly TimeSpan _viewRefreshInterval = TimeSpan.FromHours(24);