Improvements/tests for SEM_LIVE locking for iRankLocally

This commit is contained in:
Thulinma 2020-08-14 16:01:56 +02:00
parent d522c1d90f
commit f38ec0322e
2 changed files with 2 additions and 2 deletions

View file

@ -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{

View file

@ -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