You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2019/03/20 00:43:02 UTC
svn commit: r1855877 - /apr/apr/trunk/locks/win32/thread_cond.c
Author: ylavic
Date: Wed Mar 20 00:43:02 2019
New Revision: 1855877
URL: http://svn.apache.org/viewvc?rev=1855877&view=rev
Log:
apr_thread_cond_timedwait on windows should wait on the semaphore.
Fix r1792620's bad copy/paste from mutex code.
Submitted by: fedormsv gmail.com
Reviewed by: ylavic
Modified:
apr/apr/trunk/locks/win32/thread_cond.c
Modified: apr/apr/trunk/locks/win32/thread_cond.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/locks/win32/thread_cond.c?rev=1855877&r1=1855876&r2=1855877&view=diff
==============================================================================
--- apr/apr/trunk/locks/win32/thread_cond.c (original)
+++ apr/apr/trunk/locks/win32/thread_cond.c Wed Mar 20 00:43:02 2019
@@ -99,7 +99,7 @@ static APR_INLINE apr_status_t thread_co
t = 0;
}
}
- res = WaitForSingleObject(mutex->handle, timeout_ms);
+ res = WaitForSingleObject(cond->semaphore, timeout_ms);
} while (res == WAIT_TIMEOUT && t > 0);
EnterCriticalSection(&cond->csection);