Cygwin: timerfd: Fix entering critical section
Getting an abandonded mutex is just as well and must be handled. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
		| @@ -59,7 +59,8 @@ class timerfd_shared | ||||
|   /* write access methods */ | ||||
|   bool enter_cs () | ||||
|     { | ||||
|       return WaitForSingleObject (_access_mtx, INFINITE) == WAIT_OBJECT_0; | ||||
|       return (WaitForSingleObject (_access_mtx, INFINITE) & ~WAIT_ABANDONED_0) | ||||
| 	      == WAIT_OBJECT_0; | ||||
|     } | ||||
|   void leave_cs () | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user