summaryrefslogtreecommitdiffstats
path: root/queue.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-19 12:22:13 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-19 12:22:13 +0000
commitc4bc441e3c602fc184cf783ed41fe2621bdf4d38 (patch)
tree3af4c2e58b32723f1626f88e37d020f8a07609c4 /queue.h
parentfabcb72a0994cd832cc1a5019123cfec35ef0b82 (diff)
downloadrsyslog-c4bc441e3c602fc184cf783ed41fe2621bdf4d38.tar.gz
rsyslog-c4bc441e3c602fc184cf783ed41fe2621bdf4d38.tar.xz
rsyslog-c4bc441e3c602fc184cf783ed41fe2621bdf4d38.zip
seperated mutex for queue size management from those for queue thread
management
Diffstat (limited to 'queue.h')
-rw-r--r--queue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/queue.h b/queue.h
index 481c5aa1..3b53eda3 100644
--- a/queue.h
+++ b/queue.h
@@ -115,7 +115,8 @@ typedef struct queue_s {
rsRetVal (*qDel)(struct queue_s *pThis, void **ppUsr);
/* end type-specific handler */
/* synchronization variables */
- pthread_mutex_t *mut;
+ pthread_mutex_t mutThrdMgmt; /* mutex for the queue's thread management */
+ pthread_mutex_t *mut; /* mutex for enqueing and dequeueing messages */
pthread_cond_t *notFull, *notEmpty;
pthread_cond_t condThrdTrm;/* signalled when threads terminate */
pthread_cond_t *condSignalOnEmpty;/* caller-provided condition to be signalled when queue is empty (DA mode!) */