apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r754924 - in /apr/apr/trunk/poll/unix: epoll.c kqueue.c port.c
Date Mon, 16 Mar 2009 16:12:50 GMT
Author: trawick
Date: Mon Mar 16 16:12:49 2009
New Revision: 754924

URL: http://svn.apache.org/viewvc?rev=754924&view=rev
Log:
nelts, the number of elements in the pollset, was neither needed 
nor properly maintained by these implementations, so axe the
related code

Modified:
    apr/apr/trunk/poll/unix/epoll.c
    apr/apr/trunk/poll/unix/kqueue.c
    apr/apr/trunk/poll/unix/port.c

Modified: apr/apr/trunk/poll/unix/epoll.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/epoll.c?rev=754924&r1=754923&r2=754924&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/epoll.c (original)
+++ apr/apr/trunk/poll/unix/epoll.c Mon Mar 16 16:12:49 2009
@@ -188,7 +188,6 @@
             APR_RING_INSERT_TAIL(&(pollset->p->free_ring), elem, pfd_elem_t, link);
         }
         else {
-            pollset->nelts++;
             APR_RING_INSERT_TAIL(&(pollset->p->query_ring), elem, pfd_elem_t, link);
         }
         pollset_unlock_rings();

Modified: apr/apr/trunk/poll/unix/kqueue.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/kqueue.c?rev=754924&r1=754923&r2=754924&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/kqueue.c (original)
+++ apr/apr/trunk/poll/unix/kqueue.c Mon Mar 16 16:12:49 2009
@@ -177,7 +177,6 @@
     }
 
     if (rv == APR_SUCCESS) {
-        pollset->nelts++;
         APR_RING_INSERT_TAIL(&(pollset->p->query_ring), elem, pfd_elem_t, link);
     }
     else {

Modified: apr/apr/trunk/poll/unix/port.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/port.c?rev=754924&r1=754923&r2=754924&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/port.c (original)
+++ apr/apr/trunk/poll/unix/port.c Mon Mar 16 16:12:49 2009
@@ -185,13 +185,11 @@
             APR_RING_INSERT_TAIL(&(pollset->p->free_ring), elem, pfd_elem_t, link);
         }
         else {
-            pollset->nelts++;
             elem->on_query_ring = 1;
             APR_RING_INSERT_TAIL(&(pollset->p->query_ring), elem, pfd_elem_t, link);
         }
     } 
     else {
-        pollset->nelts++;
         APR_RING_INSERT_TAIL(&(pollset->p->add_ring), elem, pfd_elem_t, link);
     }
 



Mime
View raw message