From ac186f1c3d6d4a8fa4230a205c7fce91b3fef535 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 17 Jul 2009 19:59:22 +0200 Subject: removed mutex locks ... by utilizing that we need to modify a state variable only in a sequential way during shutdown. --- runtime/wti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/wti.c') diff --git a/runtime/wti.c b/runtime/wti.c index b6a09c65..b55ff69c 100644 --- a/runtime/wti.c +++ b/runtime/wti.c @@ -250,7 +250,7 @@ wtiWorker(wti_t *pThis) d_pthread_mutex_lock(pWtp->pmutUsr); /* first check if we are in shutdown process (but evaluate a bit later) */ - terminateRet = wtpChkStopWrkr(pWtp, LOCK_MUTEX, MUTEX_ALREADY_LOCKED); + terminateRet = wtpChkStopWrkr(pWtp, MUTEX_ALREADY_LOCKED); if(terminateRet == RS_RET_TERMINATE_NOW) { /* we now need to free the old batch */ localRet = pWtp->pfObjProcessed(pWtp->pUsr, pThis); -- cgit v1.2.3