diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-17 19:59:22 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-17 19:59:22 +0200 |
commit | ac186f1c3d6d4a8fa4230a205c7fce91b3fef535 (patch) | |
tree | d8e52e481c1c7903d21bbc5e4383299062e85061 /runtime/wti.c | |
parent | 4c9eded44dbae1701bb3b8f255865892b19e7f72 (diff) | |
download | rsyslog-ac186f1c3d6d4a8fa4230a205c7fce91b3fef535.tar.gz rsyslog-ac186f1c3d6d4a8fa4230a205c7fce91b3fef535.tar.xz rsyslog-ac186f1c3d6d4a8fa4230a205c7fce91b3fef535.zip |
removed mutex locks
... by utilizing that we need to modify a state variable only in
a sequential way during shutdown.
Diffstat (limited to 'runtime/wti.c')
-rw-r--r-- | runtime/wti.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |