httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: httpd-2.0/server/mpm/worker fdqueue.c
Date Thu, 10 Jul 2003 20:29:25 GMT
jorton      2003/07/10 13:29:25

  Modified:    server/mpm/worker fdqueue.c
  Log:
  Minor cleanups:
  
  * fdqueue.c (ap_queue_info_term, ap_queue_interrupt_all):
  Remove redundant conditionals.
  
  Revision  Changes    Path
  1.27      +2 -9      httpd-2.0/server/mpm/worker/fdqueue.c
  
  Index: fdqueue.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/worker/fdqueue.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -u -r1.26 -r1.27
  --- fdqueue.c	3 Feb 2003 17:53:26 -0000	1.26
  +++ fdqueue.c	10 Jul 2003 20:29:25 -0000	1.27
  @@ -252,11 +252,7 @@
       }
       queue_info->terminated = 1;
       apr_thread_cond_broadcast(queue_info->wait_for_idler);
  -    rv = apr_thread_mutex_unlock(queue_info->idlers_mutex);
  -    if (rv != APR_SUCCESS) {
  -        return rv;
  -    }
  -    return APR_SUCCESS;
  +    return apr_thread_mutex_unlock(queue_info->idlers_mutex);
   }
   
   /**
  @@ -403,10 +399,7 @@
           return rv;
       }
       apr_thread_cond_broadcast(queue->not_empty);
  -    if ((rv = apr_thread_mutex_unlock(queue->one_big_mutex)) != APR_SUCCESS) {
  -        return rv;
  -    }
  -    return APR_SUCCESS;
  +    return apr_thread_mutex_unlock(queue->one_big_mutex);
   }
   
   apr_status_t ap_queue_term(fd_queue_t *queue)
  
  
  

Mime
View raw message