summaryrefslogtreecommitdiff
path: root/poll/unix/epoll.c
diff options
context:
space:
mode:
authorpquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68>2005-03-12 00:26:39 +0000
committerpquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68>2005-03-12 00:26:39 +0000
commitb58f19075745b483206de3c23e7939c2df5abf16 (patch)
tree880f1a7178f3131f9422f2a8743eaeddb9420370 /poll/unix/epoll.c
parente9d7f35ed8ac1c4688377b7f30bf7d0f2ccafef4 (diff)
downloadlibapr-b58f19075745b483206de3c23e7939c2df5abf16.tar.gz
backport from trunk:
Use APR_RING_CONCAT instead of looping. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@157187 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll/unix/epoll.c')
-rw-r--r--poll/unix/epoll.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/poll/unix/epoll.c b/poll/unix/epoll.c
index 9bc4a7d9c..24ac86090 100644
--- a/poll/unix/epoll.c
+++ b/poll/unix/epoll.c
@@ -256,11 +256,7 @@ APR_DECLARE(apr_status_t) apr_pollset_poll(apr_pollset_t *pollset,
pollset_lock_rings();
/* Shift all PFDs in the Dead Ring to be Free Ring */
- while (!APR_RING_EMPTY(&(pollset->dead_ring), pfd_elem_t, link)) {
- ep = APR_RING_FIRST(&(pollset->dead_ring));
- APR_RING_REMOVE(ep, link);
- APR_RING_INSERT_TAIL(&(pollset->free_ring), ep, pfd_elem_t, link);
- }
+ APR_RING_CONCAT(&(pollset->free_ring), &(pollset->dead_ring), pfd_elem_t, link);
pollset_unlock_rings();