summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-05-20 11:11:02 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-20 11:11:02 +0200
commitad7ccabe5ec616a4bf9fda1472d8041eaf1bf815 (patch)
treeaa6aeba40e7fac4361306dee57bded3da7ab757d /runtime/queue.c
parent0cf8e88a348dc574244e4f5c2be26f47e8bfff08 (diff)
downloadrsyslog-ad7ccabe5ec616a4bf9fda1472d8041eaf1bf815.tar.gz
rsyslog-ad7ccabe5ec616a4bf9fda1472d8041eaf1bf815.tar.xz
rsyslog-ad7ccabe5ec616a4bf9fda1472d8041eaf1bf815.zip
yield() no longer needed on uniproc thanks to new algorithms
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 672ba9f5..3118bb19 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -2361,13 +2361,6 @@ finalize_it:
d_pthread_mutex_unlock(pThis->mut);
pthread_setcancelstate(iCancelStateSave, NULL);
dbgoprint((obj_t*) pThis, "EnqueueMsg advised worker start\n");
- /* the following pthread_yield is experimental, but brought us performance
- * benefit. For details, please see http://kb.monitorware.com/post14216.html#p14216
- * rgerhards, 2008-10-09
- * but this is only true for uniprocessors, so we guard it with an optimize flag -- rgerhards, 2008-10-22
- */
- if(pThis->bOptimizeUniProc)
- pthread_yield();
}
RETiRet;