From e055d4921b9a53e9dfedc56bbff3a9b12400d34d Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Sat, 5 Jan 2008 13:05:17 +0000 Subject: added capability for concurrent access to the msg class. Can be dynamically activated. If active, locking is employed. --- queue.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'queue.c') 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); -- cgit v1.2.3