Fixed tryWait semaphore call
This commit is contained in:
		
							parent
							
								
									db511a6e32
								
							
						
					
					
						commit
						f4e3087f1a
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -231,7 +231,9 @@ namespace IPC {
 | 
				
			||||||
      result = 0;
 | 
					      result = 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 | 
					    do {
 | 
				
			||||||
      result = sem_trywait(mySem);
 | 
					      result = sem_trywait(mySem);
 | 
				
			||||||
 | 
					    } while (result == -1 && errno == EINTR);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    return (result == 0);
 | 
					    return (result == 0);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue