summaryrefslogtreecommitdiffstats
path: root/queue.h
diff options
context:
space:
mode:
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