diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-29 17:36:19 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-29 17:36:19 +0000 |
commit | e12e53cfbb8b8764dcbd4da3ff143ad9d46a8795 (patch) | |
tree | 18d6567c396b258ca4fb373421168de1588a640a /queue.h | |
parent | 7adc80509c80239802716233f8168d566e278873 (diff) | |
download | rsyslog-e12e53cfbb8b8764dcbd4da3ff143ad9d46a8795.tar.gz rsyslog-e12e53cfbb8b8764dcbd4da3ff143ad9d46a8795.tar.xz rsyslog-e12e53cfbb8b8764dcbd4da3ff143ad9d46a8795.zip |
added ability to re-enqueue objects into the queue when a worker thread is
cancelled
Diffstat (limited to 'queue.h')
-rw-r--r-- | queue.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -116,6 +116,12 @@ typedef struct queue_s { struct queue_s *pqDA; /* queue for disk-assisted modes */ struct queue_s *pqParent;/* pointer to the parent (if this is a child queue) */ int bDAEnqOnly; /* EnqOnly setting for DA queue */ + /* some data elements for the queueUngetObj() functionality. This list should always be short + * and is always kept in memory + */ + qLinkedList_t *pUngetRoot; + qLinkedList_t *pUngetLast; + int iUngottenObjs; /* number of objects currently in the "ungotten" list */ /* now follow queueing mode specific data elements */ union { /* different data elements based on queue type (qType) */ struct { |