Fixed Windows compile.
This commit is contained in:
		
							parent
							
								
									71dc32d2d3
								
							
						
					
					
						commit
						2fb1459dff
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -187,7 +187,7 @@ namespace IPC { | ||||||
| #if defined(__CYGWIN__) || defined(_WIN32) | #if defined(__CYGWIN__) || defined(_WIN32) | ||||||
|     result = WaitForSingleObject(mySem, 0);//wait at most 1ms
 |     result = WaitForSingleObject(mySem, 0);//wait at most 1ms
 | ||||||
|     if (result == 0x80){ |     if (result == 0x80){ | ||||||
|       WARN_MSG("Consistency error caught on semaphore %s", myName); |       WARN_MSG("Consistency error caught on semaphore %s", myName.c_str()); | ||||||
|       result = 0; |       result = 0; | ||||||
|     } |     } | ||||||
| #else | #else | ||||||
|  | @ -202,7 +202,7 @@ namespace IPC { | ||||||
| #if defined(__CYGWIN__) || defined(_WIN32) | #if defined(__CYGWIN__) || defined(_WIN32) | ||||||
|     result = WaitForSingleObject(mySem, 1000);//wait at most 1s
 |     result = WaitForSingleObject(mySem, 1000);//wait at most 1s
 | ||||||
|     if (result == 0x80){ |     if (result == 0x80){ | ||||||
|       WARN_MSG("Consistency error caught on semaphore %s", myName); |       WARN_MSG("Consistency error caught on semaphore %s", myName.c_str()); | ||||||
|       result = 0; |       result = 0; | ||||||
|     } |     } | ||||||
| #else | #else | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma