diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-19 12:22:13 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-19 12:22:13 +0000 |
commit | c4bc441e3c602fc184cf783ed41fe2621bdf4d38 (patch) | |
tree | 3af4c2e58b32723f1626f88e37d020f8a07609c4 /queue.h | |
parent | fabcb72a0994cd832cc1a5019123cfec35ef0b82 (diff) | |
download | rsyslog-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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!) */ |