diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-12 18:16:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-12 18:16:47 +0000 |
commit | 0a9e0fa169da8cd98a0d41151347febc92605e13 (patch) | |
tree | 4c70f45fd84190c22e7eef6cab97a24d325255e8 /src | |
parent | ea131def87ab503a0c8a8fc1197e73403211e166 (diff) |
New version that doesnt yield() any more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2354 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 6 |
1 files changed, 0 insertions, 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. */ |