apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/locks/win32 thread_cond.c
Date Tue, 31 Dec 2002 17:44:56 GMT
wrowe       2002/12/31 09:44:56

  Modified:    locks/win32 thread_cond.c
  Log:
    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.
  
  Revision  Changes    Path
  1.9       +2 -2      apr/locks/win32/thread_cond.c
  
  Index: thread_cond.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/win32/thread_cond.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- thread_cond.c	29 Dec 2002 23:13:04 -0000	1.8
  +++ thread_cond.c	31 Dec 2002 17:44:56 -0000	1.9
  @@ -128,7 +128,7 @@
       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 @@
           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;
  
  
  

Mime
View raw message