diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-16 12:42:45 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-16 12:42:45 +0200 |
commit | cb7f903730f097ebaa02dd12b3280a11e79b256b (patch) | |
tree | ef3ffa46de2b1f71c98245e61407f94349573e88 /runtime/wtp.c | |
parent | 65a449ded48ead4501bb7cb9ba7818124ad2f5e4 (diff) | |
download | rsyslog-cb7f903730f097ebaa02dd12b3280a11e79b256b.tar.gz rsyslog-cb7f903730f097ebaa02dd12b3280a11e79b256b.tar.xz rsyslog-cb7f903730f097ebaa02dd12b3280a11e79b256b.zip |
some code simplification
Diffstat (limited to 'runtime/wtp.c')
-rw-r--r-- | runtime/wtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/wtp.c b/runtime/wtp.c index 6d394a18..0beef263 100644 --- a/runtime/wtp.c +++ b/runtime/wtp.c @@ -372,7 +372,7 @@ wtpWorker(void *arg) /* the arg is actually a wti object, even though we are in * because someone may have requested us to shut down even before we got a chance to do * our init. That would be a bad race... -- rgerhards, 2008-01-16 */ - wtiSetState(pWti, eWRKTHRD_RUNNING, 0, MUTEX_ALREADY_LOCKED); /* we are running now! */ + wtiSetState(pWti, eWRKTHRD_RUNNING, MUTEX_ALREADY_LOCKED); /* we are running now! */ do { END_MTX_PROTECTED_OPERATIONS(&pThis->mut); @@ -430,7 +430,7 @@ wtpStartWrkr(wtp_t *pThis, int bLockMutex) ABORT_FINALIZE(RS_RET_NO_MORE_THREADS); pWti = pThis->pWrkr[i]; - wtiSetState(pWti, eWRKTHRD_RUN_CREATED, 0, LOCK_MUTEX); + wtiSetState(pWti, eWRKTHRD_RUN_CREATED, LOCK_MUTEX); pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); iState = pthread_create(&(pWti->thrdID), &attr, wtpWorker, (void*) pWti); |