summaryrefslogtreecommitdiffstats
path: root/queue.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-29 17:36:19 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-29 17:36:19 +0000
commite12e53cfbb8b8764dcbd4da3ff143ad9d46a8795 (patch)
tree18d6567c396b258ca4fb373421168de1588a640a /queue.h
parent7adc80509c80239802716233f8168d566e278873 (diff)
downloadrsyslog-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/queue.h b/queue.h
index e48d9796..12e4fcb6 100644
--- a/queue.h
+++ b/queue.h
@@ -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 {