summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-11-02 23:27:16 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-11-02 23:27:16 +0000
commitcff4bbe7f714e757439d8fc499c6d9c43b706eb5 (patch)
treee2e6d39a2b7b86afe73aef164357525e71f65385 /locks
parentaa634e2287f0589a68ed351666daf178debb1a76 (diff)
downloadlibapr-cff4bbe7f714e757439d8fc499c6d9c43b706eb5.tar.gz
Implemented apr_cond_timedwait
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62485 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/netware/thread_cond.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/locks/netware/thread_cond.c b/locks/netware/thread_cond.c
index d5562311e..ff0379e4a 100644
--- a/locks/netware/thread_cond.c
+++ b/locks/netware/thread_cond.c
@@ -103,7 +103,11 @@ APR_DECLARE(apr_status_t) apr_thread_cond_wait(apr_thread_cond_t *cond,
APR_DECLARE(apr_status_t) apr_thread_cond_timedwait(apr_thread_cond_t *cond,
apr_thread_mutex_t *mutex,
apr_interval_time_t timeout){
- return APR_ENOTIMPL;
+ if (NXCondTimedWait(cond->cond, mutex->mutex,
+ (timeout*1000)/NXGetSystemTick()) == NX_ETIMEDOUT) {
+ return APR_TIMEUP;
+ }
+ return APR_SUCCESS;
}
APR_DECLARE(apr_status_t) apr_thread_cond_signal(apr_thread_cond_t *cond)