diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-16 09:24:38 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-16 09:24:38 +0000 |
commit | 22b9dc1af11c3fdfdf9218fb48e15aedf9a342b3 (patch) | |
tree | cd68f2098fa3277138eec015ffb74756f1df1a01 /queue.h | |
parent | f2c27aa1e032c2b9e6339c01904334f33b4ac920 (diff) | |
download | rsyslog-22b9dc1af11c3fdfdf9218fb48e15aedf9a342b3.tar.gz rsyslog-22b9dc1af11c3fdfdf9218fb48e15aedf9a342b3.tar.bz2 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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |