summaryrefslogtreecommitdiffstats
path: root/runtime/wtp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-19 12:03:56 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-19 12:03:56 +0200
commit7a695d171436fe249770e8256ae48cd4ed86fd30 (patch)
treeb1c7228482cce6e65fd9d72a4488290ecbed11e2 /runtime/wtp.c
parentdd53709083f3671ac711d5d2cb03bfd9c80a7cf3 (diff)
downloadrsyslog-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/wtp.c')
-rw-r--r--runtime/wtp.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/runtime/wtp.c b/runtime/wtp.c
index df39daa3..611b3f25 100644
--- a/runtime/wtp.c
+++ b/runtime/wtp.c
@@ -82,7 +82,6 @@ static rsRetVal NotImplementedDummy() { return RS_RET_OK; }
/* Standard-Constructor for the wtp object
*/
BEGINobjConstruct(wtp) /* be sure to specify the object type also in END macro! */
- pThis->bOptimizeUniProc = glbl.GetOptimizeUniProc();
pthread_mutex_init(&pThis->mut, NULL);
pthread_mutex_init(&pThis->mutThrdShutdwn, NULL);
pthread_cond_init(&pThis->condThrdTrm, NULL);
@@ -509,14 +508,6 @@ wtpStartWrkr(wtp_t *pThis, int bLockMutex)
dbgprintf("%s: started with state %d, num workers now %d\n",
wtpGetDbgHdr(pThis), iState, pThis->iCurNumWrkThrd);
- /* we try to give the starting worker a little boost. It won't help much as we still
- * hold the queue's mutex, but at least it has a chance to start on a single-CPU system.
- */
-# if !defined(__hpux) /* pthread_yield is missing there! */
- if(pThis->bOptimizeUniProc)
- pthread_yield();
-# endif
-
/* indicate we just started a worker and would like to see it running */
wtpSetInactivityGuard(pThis, 1, MUTEX_ALREADY_LOCKED);