summaryrefslogtreecommitdiffstats
path: root/runtime/nspoll.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-01-25 17:31:24 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-01-25 17:31:24 +0100
commit093ad4a47b1494934208f395e8c5dd116e1ae5a6 (patch)
tree6e1c92a21c7eab5db39d059e6ffd65aeac171118 /runtime/nspoll.c
parentf0a4fe3597a4e1993ce7ca0533c6f2b3767c0400 (diff)
downloadrsyslog-093ad4a47b1494934208f395e8c5dd116e1ae5a6.tar.gz
rsyslog-093ad4a47b1494934208f395e8c5dd116e1ae5a6.tar.xz
rsyslog-093ad4a47b1494934208f395e8c5dd116e1ae5a6.zip
improved tcpsrv performance by enabling multiple-entry epoll
so far, we always pulled a single event from the epoll interface. Now 128, what should result in performance improvement (less API calls) on busy systems. Most importantly affects imtcp.
Diffstat (limited to 'runtime/nspoll.c')
-rw-r--r--runtime/nspoll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/nspoll.c b/runtime/nspoll.c
index 64927280..c36375fd 100644
--- a/runtime/nspoll.c
+++ b/runtime/nspoll.c
@@ -129,11 +129,11 @@ finalize_it:
/* Carries out the actual wait (all done in lower layers)
*/
static rsRetVal
-Wait(nspoll_t *pThis, int timeout, int *idRdy, void **ppUsr) {
+Wait(nspoll_t *pThis, int timeout, int *numEntries, int idRdy[], void *ppUsr[]) {
DEFiRet;
ISOBJ_TYPE_assert(pThis, nspoll);
assert(idRdy != NULL);
- iRet = pThis->Drvr.Wait(pThis->pDrvrData, timeout, idRdy, ppUsr);
+ iRet = pThis->Drvr.Wait(pThis->pDrvrData, timeout, numEntries, idRdy, ppUsr);
RETiRet;
}