From 0a9e0fa169da8cd98a0d41151347febc92605e13 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Dec 2005 18:16:47 +0000 Subject: New version that doesnt yield() any more git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2354 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 31db3182a..5b4b8f5d1 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2696,12 +2696,6 @@ int InspIRCd(char** argv, int argc) /* main loop, this never returns */ for (;;) { -#ifdef _POSIX_PRIORITY_SCHEDULING - /* If we can, yield a bit. Doesnt do us any harm, if we're busy we take back some timeslice later ;-) - * it just means that if we have absolutely NOTHING to do, we dont eat up all the cpu doing nothing. - */ - sched_yield(); sched_yield(); -#endif /* time() seems to be a pretty expensive syscall, so avoid calling it too much. * Once per loop iteration is pleanty. */ -- cgit v1.2.3