apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/locks/netware thread_cond.c
Date Fri, 02 Nov 2001 23:27:16 GMT
bnicholes    01/11/02 15:27:16

  Modified:    locks/netware thread_cond.c
  Log:
  Implemented apr_cond_timedwait
  
  Revision  Changes    Path
  1.5       +5 -1      apr/locks/netware/thread_cond.c
  
  Index: thread_cond.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/netware/thread_cond.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- thread_cond.c	2001/10/12 01:05:02	1.4
  +++ thread_cond.c	2001/11/02 23:27:16	1.5
  @@ -103,7 +103,11 @@
   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)
  
  
  

Mime
View raw message