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

@@ -62,7 +62,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
private readonly AsyncNonKeyedLocker _thumbnailResourcePool;
private readonly object _runningProcessesLock = new object();
private readonly Lock _runningProcessesLock = new();
private readonly List<ProcessWrapper> _runningProcesses = new List<ProcessWrapper>();
// MediaEncoder is registered as a Singleton