From f03431a834fa74326f43095c5b41b71014ea2e70 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 25 Nov 2013 09:40:53 +0100 Subject: regression fix: action queues with default settings did not start worker thread --- runtime/queue.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'runtime/queue.c') diff --git a/runtime/queue.c b/runtime/queue.c index e6dd6d69..8cbce011 100644 --- a/runtime/queue.c +++ b/runtime/queue.c @@ -2169,11 +2169,9 @@ qqueueStart(qqueue_t *pThis) /* this is the ConstructionFinalizer */ pThis->iLowWtrMrk = 1; } } - if(pThis->iNumWorkerThreads > 1) { - if( pThis->iMinMsgsPerWrkr < 1 - || pThis->iMinMsgsPerWrkr > pThis->iMaxQueueSize ) - pThis->iMinMsgsPerWrkr = pThis->iMaxQueueSize / pThis->iNumWorkerThreads; - } + if( pThis->iMinMsgsPerWrkr < 1 + || pThis->iMinMsgsPerWrkr > pThis->iMaxQueueSize ) + pThis->iMinMsgsPerWrkr = pThis->iMaxQueueSize / pThis->iNumWorkerThreads; if(pThis->iFullDlyMrk == -1 || pThis->iFullDlyMrk > pThis->iMaxQueueSize) { pThis->iFullDlyMrk = (pThis->iMaxQueueSize / 100) * 97; if(pThis->iFullDlyMrk == 0) { -- cgit v1.2.3