diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-03 11:40:13 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-03 11:40:13 +0100 |
commit | feddb2cc8fa213725a14e556d0366aef8d3a4339 (patch) | |
tree | befc6075cf0e147c4565cd021701142b25bbbd99 /runtime/queue.h | |
parent | 40fffde2b6a36ba12388b89d422104c258a667f7 (diff) | |
download | rsyslog-feddb2cc8fa213725a14e556d0366aef8d3a4339.tar.gz rsyslog-feddb2cc8fa213725a14e556d0366aef8d3a4339.tar.bz2 rsyslog-feddb2cc8fa213725a14e556d0366aef8d3a4339.zip |
queue: change gerenic queue pUsr ptr to be action_t
this was always action_t, but the initial design was more generic. We are
making it specific now in order to gain better performance (after all, we
did not need the generic engine in the past 8 years...)
Diffstat (limited to 'runtime/queue.h')
-rw-r--r-- | runtime/queue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/queue.h b/runtime/queue.h index f9d6067f..a5a020ae 100644 --- a/runtime/queue.h +++ b/runtime/queue.h @@ -71,7 +71,7 @@ struct queue_s { int iMinMsgsPerWrkr;/* minimum nbr of msgs per worker thread, if more, a new worker is started until max wrkrs */ wtp_t *pWtpDA; wtp_t *pWtpReg; - void *pUsr; /* a global, user-supplied pointer. Is passed back to consumer. */ + action_t *pAction; /* for action queues, ptr to action object; for main queues unused */ int iUpdsSincePersist;/* nbr of queue updates since the last persist call */ int iPersistUpdCnt; /* persits queue info after this nbr of updates - 0 -> persist only on shutdown */ sbool bSyncQueueFiles;/* if working with files, sync them after each write? */ @@ -215,7 +215,7 @@ PROTOTYPEpropSetMeth(qqueue, iDiscardMrk, int); PROTOTYPEpropSetMeth(qqueue, iDiscardSeverity, int); PROTOTYPEpropSetMeth(qqueue, iMinMsgsPerWrkr, int); PROTOTYPEpropSetMeth(qqueue, bSaveOnShutdown, int); -PROTOTYPEpropSetMeth(qqueue, pUsr, void*); +PROTOTYPEpropSetMeth(qqueue, pAction, action_t*); PROTOTYPEpropSetMeth(qqueue, iDeqSlowdown, int); PROTOTYPEpropSetMeth(qqueue, sizeOnDiskMax, int64); PROTOTYPEpropSetMeth(qqueue, iDeqBatchSize, int); |