aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/MediaEncoding/TranscodingJob.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-12-20 22:15:45 +0100
committerGitHub <noreply@github.com>2024-12-20 22:15:45 +0100
commitc4d44198007be4cfd48fcf5ff4d06d9b8f0cb75c (patch)
treeb6bdace3074343726bd70f8a5151480c8d87fe09 /MediaBrowser.Controller/MediaEncoding/TranscodingJob.cs
parent17f064314749359d159b06409d46918e7cd47e10 (diff)
parent2614fecf8df6e04b0d0a2b33722923c239ed0f91 (diff)
Merge pull request #13213 from Ich1goSan/master
move to new System.Threading.Lock type for better performance
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/TranscodingJob.cs')
-rw-r--r--MediaBrowser.Controller/MediaEncoding/TranscodingJob.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/TranscodingJob.cs b/MediaBrowser.Controller/MediaEncoding/TranscodingJob.cs
index fefa66cdb..56990d0b8 100644
--- a/MediaBrowser.Controller/MediaEncoding/TranscodingJob.cs
+++ b/MediaBrowser.Controller/MediaEncoding/TranscodingJob.cs
@@ -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;