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

@@ -12,8 +12,8 @@ namespace MediaBrowser.Controller.MediaEncoding;
public sealed class TranscodingJob : IDisposable
{
private readonly ILogger<TranscodingJob> _logger;
private readonly object _processLock = new();
private readonly object _timerLock = new();
private readonly Lock _processLock = new();
private readonly Lock _timerLock = new();
private Timer? _killTimer;