From f38ec0322e7a84369aec0d657e8588f8f9c93c56 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Fri, 14 Aug 2020 16:01:56 +0200 Subject: [PATCH] Improvements/tests for SEM_LIVE locking for iRankLocally --- src/input/input.cpp | 2 +- src/input/input_buffer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/input.cpp b/src/input/input.cpp index 7ddb3f7a..d8f762b8 100644 --- a/src/input/input.cpp +++ b/src/input/input.cpp @@ -639,7 +639,7 @@ namespace Mist { static char liveSemName[NAME_BUFFER_SIZE]; snprintf(liveSemName, NAME_BUFFER_SIZE, SEM_LIVE, streamName.c_str()); - IPC::semaphore * liveSem = new IPC::semaphore(liveSemName, O_RDWR, ACCESSPERMS, 1, !myMeta.live); + IPC::semaphore * liveSem = new IPC::semaphore(liveSemName, O_RDWR, ACCESSPERMS, 8, !myMeta.live); if (*liveSem){ liveSem->wait(); }else{ diff --git a/src/input/input_buffer.cpp b/src/input/input_buffer.cpp index e0868a37..688ded63 100644 --- a/src/input/input_buffer.cpp +++ b/src/input/input_buffer.cpp @@ -476,7 +476,7 @@ namespace Mist { } /// \triggers - /// The `"STREAM_TRACK_REMOVE"` trigger is stream-specific, and is ran whenever a track is fully removed from a live strean buffer. It cannot be cancelled. Its payload is: + /// The `"STREAM_TRACK_REMOVE"` trigger is stream-specific, and is ran whenever a track is fully removed from a live stream buffer. It cannot be cancelled. Its payload is: /// ~~~~~~~~~~~~~~~ /// streamname /// trackID