diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-31 17:44:56 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-31 17:44:56 +0000 |
commit | 3073bc625b6f5293c3eda3a1b370235b5c6130d8 (patch) | |
tree | aaf61bacc9d95fefe0683872dfed5c58dc9dc038 | |
parent | 235b55c145f7d512774b3fdad3e088a83539a926 (diff) | |
download | libapr-3073bc625b6f5293c3eda3a1b370235b5c6130d8.tar.gz |
A second stab at getting apr_thread_cond_timedwait to work. Someone
else should look at this code, please, and let me know if it follows
the correct behavior. It passes the tests, but that presumes the tests
themselves are sufficient.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64243 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | locks/win32/thread_cond.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/locks/win32/thread_cond.c b/locks/win32/thread_cond.c index e0c428f72..ee7e9dda1 100644 --- a/locks/win32/thread_cond.c +++ b/locks/win32/thread_cond.c @@ -128,7 +128,7 @@ APR_DECLARE(apr_status_t) apr_thread_cond_timedwait(apr_thread_cond_t *cond, while (1) { res = WaitForSingleObject(cond->mutex, timeout_ms); if (res != WAIT_OBJECT_0) { - if (res == WAIT_ABANDONED) { + if (res == WAIT_TIMEOUT) { return APR_TIMEUP; } return apr_get_os_error(); @@ -142,7 +142,7 @@ APR_DECLARE(apr_status_t) apr_thread_cond_timedwait(apr_thread_cond_t *cond, if (res != WAIT_OBJECT_0) { apr_status_t rv = apr_get_os_error(); ReleaseMutex(cond->mutex); - if (res == WAIT_ABANDONED) { + if (res == WAIT_TIMEOUT) { rv = APR_TIMEUP; } return rv; |