diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-05 13:05:17 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-05 13:05:17 +0000 |
commit | e055d4921b9a53e9dfedc56bbff3a9b12400d34d (patch) | |
tree | 7a0969cefb4fdd6023faec7e2614d033fdb78480 /queue.c | |
parent | 800ac1889b99057f1e6670d4ce5941bda33b6773 (diff) | |
download | rsyslog-e055d4921b9a53e9dfedc56bbff3a9b12400d34d.tar.gz rsyslog-e055d4921b9a53e9dfedc56bbff3a9b12400d34d.tar.bz2 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.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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); |