Improvements/tests for SEM_LIVE locking for iRankLocally
This commit is contained in:
		
							parent
							
								
									d522c1d90f
								
							
						
					
					
						commit
						f38ec0322e
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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{ | ||||
|  |  | |||
|  | @ -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
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma