/*
- * $Id: comm_poll.cc,v 1.23 2007/06/10 12:13:31 hno Exp $
+ * $Id: comm_poll.cc,v 1.24 2007/09/01 13:09:59 hno Exp $
*
* DEBUG: section 5 Socket Functions
*
}
getCurrentTime();
- statCounter.syscalls.polls++;
+ statCounter.syscalls.selects++;
if (poll(pfds, npfds, 0) < 1) {
PROF_stop(comm_check_incoming);
for (;;) {
PROF_start(comm_poll_normal);
- statCounter.syscalls.polls++;
+ statCounter.syscalls.selects++;
num = poll(pfds, nfds, msec);
statCounter.select_loops++;
PROF_stop(comm_poll_normal);
/*
- * $Id: squid.h,v 1.266 2007/08/17 18:56:31 serassio Exp $
+ * $Id: squid.h,v 1.267 2007/09/01 13:09:59 hno Exp $
*
* AUTHOR: Duane Wessels
*
* -- Oskar Pearson <oskar@is.co.za>
* -- Stewart Forster <slf@connect.com.au>
*/
-#if HAVE_POLL
+#if USE_POLL
#if HAVE_POLL_H
#include <poll.h>
-#else /* HAVE_POLL_H */
-#undef HAVE_POLL
#endif /* HAVE_POLL_H */
-#endif /* HAVE_POLL */
+#endif /* USE_POLL */
/*
* Filedescriptor limits in the different select loops
#endif
/* Needed for poll() on Linux at least */
-#if HAVE_POLL
+#if USE_POLL
#ifndef POLLRDNORM
#define POLLRDNORM POLLIN
#endif
/*
- * $Id: stat.cc,v 1.408 2007/08/13 17:20:51 hno Exp $
+ * $Id: stat.cc,v 1.409 2007/09/01 13:09:59 hno Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
XAVG(aborted_requests));
#if USE_POLL
-
- storeAppendPrintf(sentry, "syscalls.polls = %f/sec\n", XAVG(syscalls.polls));
-#endif
-#if defined(USE_SELECT) || defined(USE_SELECT_WIN32)
-
+ storeAppendPrintf(sentry, "syscalls.polls = %f/sec\n", XAVG(syscalls.selects));
+#elif defined(USE_SELECT) || defined(USE_SELECT_WIN32)
storeAppendPrintf(sentry, "syscalls.selects = %f/sec\n", XAVG(syscalls.selects));
#endif
/*
- * $Id: structs.h,v 1.562 2007/09/01 05:56:37 amosjeffries Exp $
+ * $Id: structs.h,v 1.563 2007/09/01 13:09:59 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
}
sock;
-#if HAVE_POLL
-
- int polls;
-#else
-
int selects;
-#endif
-
}
syscalls;