summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2019-03-20 00:43:02 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2019-03-20 00:43:02 +0000
commit159b538fd6501c23837a3cb1217135c00d9daf87 (patch)
tree5be2a6b715d7c075e9e7d28cb748aa116d6fc024
parent5fb101627f76f2b277371a8ec1a414a504bb14a0 (diff)
downloadlibapr-159b538fd6501c23837a3cb1217135c00d9daf87.tar.gz
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 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1855877 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--locks/win32/thread_cond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locks/win32/thread_cond.c b/locks/win32/thread_cond.c
index d22567a88..f571f9ec9 100644
--- a/locks/win32/thread_cond.c
+++ b/locks/win32/thread_cond.c
@@ -99,7 +99,7 @@ static APR_INLINE apr_status_t thread_cond_timedwait(apr_thread_cond_t *cond,
t = 0;
}
}
- res = WaitForSingleObject(mutex->handle, timeout_ms);
+ res = WaitForSingleObject(cond->semaphore, timeout_ms);
} while (res == WAIT_TIMEOUT && t > 0);
EnterCriticalSection(&cond->csection);