diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-19 12:03:56 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-19 12:03:56 +0200 |
commit | 7a695d171436fe249770e8256ae48cd4ed86fd30 (patch) | |
tree | b1c7228482cce6e65fd9d72a4488290ecbed11e2 /runtime/wti.c | |
parent | dd53709083f3671ac711d5d2cb03bfd9c80a7cf3 (diff) | |
download | rsyslog-7a695d171436fe249770e8256ae48cd4ed86fd30.tar.gz rsyslog-7a695d171436fe249770e8256ae48cd4ed86fd30.tar.xz rsyslog-7a695d171436fe249770e8256ae48cd4ed86fd30.zip |
removed uniprocessor optimization
... as it was not even optimal on uniprocessors any longer ;) I keep
the config directive in, maybe we can utilize it again at some later
point in time (questionable).
Diffstat (limited to 'runtime/wti.c')
-rw-r--r-- | runtime/wti.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/runtime/wti.c b/runtime/wti.c index 18767ea1..bfe8f863 100644 --- a/runtime/wti.c +++ b/runtime/wti.c @@ -208,7 +208,6 @@ ENDobjDestruct(wti) /* Standard-Constructor for the wti object */ BEGINobjConstruct(wti) /* be sure to specify the object type also in END macro! */ - pThis->bOptimizeUniProc = glbl.GetOptimizeUniProc(); pthread_cond_init(&pThis->condExitDone, NULL); pthread_mutex_init(&pThis->mut, NULL); ENDobjConstruct(wti) @@ -377,10 +376,6 @@ wtiWorker(wti_t *pThis) /* process any pending thread requests */ wtpProcessThrdChanges(pWtp); pthread_testcancel(); /* see big comment in function header */ -# if !defined(__hpux) /* pthread_yield is missing there! */ - if(pThis->bOptimizeUniProc) - pthread_yield(); /* see big comment in function header */ -# endif /* if we have a rate-limiter set for this worker pool, let's call it. Please * keep in mind that the rate-limiter may hold us for an extended period |