summaryrefslogtreecommitdiffstats
path: root/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-05 13:05:17 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-05 13:05:17 +0000
commite055d4921b9a53e9dfedc56bbff3a9b12400d34d (patch)
tree7a0969cefb4fdd6023faec7e2614d033fdb78480 /queue.c
parent800ac1889b99057f1e6670d4ce5941bda33b6773 (diff)
downloadrsyslog-e055d4921b9a53e9dfedc56bbff3a9b12400d34d.tar.gz
rsyslog-e055d4921b9a53e9dfedc56bbff3a9b12400d34d.tar.xz
rsyslog-e055d4921b9a53e9dfedc56bbff3a9b12400d34d.zip
added capability for concurrent access to the msg class. Can be dynamically
activated. If active, locking is employed.
Diffstat (limited to 'queue.c')
-rw-r--r--queue.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/queue.c b/queue.c
index d324172e..73bbf168 100644
--- a/queue.c
+++ b/queue.c
@@ -460,12 +460,12 @@ rsRetVal queueDestruct(queue_t *pThis)
dbgprintf("Worker thread for queue 0x%lx terminated.\n", (unsigned long) pThis);
/* ... then free resources */
- pthread_mutex_destroy (pThis->mut);
- free (pThis->mut);
- pthread_cond_destroy (pThis->notFull);
- free (pThis->notFull);
- pthread_cond_destroy (pThis->notEmpty);
- free (pThis->notEmpty);
+ pthread_mutex_destroy(pThis->mut);
+ free(pThis->mut);
+ pthread_cond_destroy(pThis->notFull);
+ free(pThis->notFull);
+ pthread_cond_destroy(pThis->notEmpty);
+ free(pThis->notEmpty);
/* type-specific destructor */
iRet = pThis->qDestruct(pThis);