diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-01-01 18:31:57 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-01-01 18:31:57 -0600 |
| commit | 8b4a4d1d4c000192e068e5c78f3f9c18eb24d492 (patch) | |
| tree | 4d8cbb9d863cbd1f84325d9a16bc0513e76a5ba8 /src | |
| parent | 42d1647f0ec495ee8afa986d9061603c70be7374 (diff) | |
| download | slskd-8b4a4d1d4c000192e068e5c78f3f9c18eb24d492.tar.gz | |
add semaphores
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index d2bb1f3e..c5b6450c 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -224,7 +224,9 @@ namespace slskd private OptionsAtStartup OptionsAtStartup { get; set; } private IOptionsMonitor<Options> OptionsMonitor { get; set; } private SemaphoreSlim OptionsSyncRoot { get; } = new SemaphoreSlim(1, 1); - private SemaphoreSlim EnqueueRequestRateLimiter { get; } = new SemaphoreSlim(10, 10); + private SemaphoreSlim EnqueueSemaphore { get; } = new SemaphoreSlim(10, 10); + private SemaphoreSlim tUserEnqueueSemaphoreSyncRoot { get; } = new SemaphoreSlim(1, 1); + private ConcurrentDictionary<string, SemaphoreSlim> UserEnqueueSemaphores { get; } = new ConcurrentDictionary<string, SemaphoreSlim>(); private Options PreviousOptions { get; set; } private IPushbulletService Pushbullet { get; } private DateTime SharesRefreshStarted { get; set; } |
