From 22b9dc1af11c3fdfdf9218fb48e15aedf9a342b3 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 16 Jan 2008 09:24:38 +0000 Subject: queue is now able to restore persisted state on startup (but still some fine tuning to be done) --- queue.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'queue.h') 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 -- cgit v1.2.3