summaryrefslogtreecommitdiffstats
path: root/queue.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-16 09:24:38 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-16 09:24:38 +0000
commit22b9dc1af11c3fdfdf9218fb48e15aedf9a342b3 (patch)
treecd68f2098fa3277138eec015ffb74756f1df1a01 /queue.h
parentf2c27aa1e032c2b9e6339c01904334f33b4ac920 (diff)
downloadrsyslog-22b9dc1af11c3fdfdf9218fb48e15aedf9a342b3.tar.gz
rsyslog-22b9dc1af11c3fdfdf9218fb48e15aedf9a342b3.tar.xz
rsyslog-22b9dc1af11c3fdfdf9218fb48e15aedf9a342b3.zip
queue is now able to restore persisted state on startup (but still some
fine tuning to be done)
Diffstat (limited to 'queue.h')
-rw-r--r--queue.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/queue.h b/queue.h
index 503edd38..7b0970c8 100644
--- a/queue.h
+++ b/queue.h
@@ -107,7 +107,9 @@ typedef struct queue_s {
pthread_cond_t condThrdTrm;/* signalled when threads terminate */
pthread_cond_t *condSignalOnEmpty;/* caller-provided condition to be signalled when queue is empty (DA mode!) */
pthread_mutex_t *mutSignalOnEmpty; /* and its associated mutex */
- int bSignalOnEmpty; /* signal caller when queue is empty via xxxSignalOnEmpty cond/mut */
+ pthread_cond_t *condSignalOnEmpty2;/* another condition to be signalled on empty */
+ int bSignalOnEmpty; /* signal caller when queue is empty via xxxSignalOnEmpty cond/mut,
+ 0 = do not, 1 = signal only condSignalOnEmpty, 2 = signal both condSig..*/
int bThrdStateChanged; /* at least one thread state has changed if 1 */
/* end sync variables */
/* the following variables are always present, because they