haiku/headers
Axel Dörfler eb117b4bfd Reworked the way thread_yield() works: just setting the thread to B_LOWEST_ACTIVE_PRIORITY
for one quantum wasn't really a good idea, as this could get quite expensive for the thread
(depending on the system load, it might have taken a long time until the thread was scheduled
again, no matter what priority it was).
Also, calling thread_yield() in a loop would have taken 100% CPU time.
Now, we sort the thread into the queue as with any other thread, but we'll ignore it once.
This now guarantees an actual context switch, as well as a much fairer rescheduling policy
for threads calling that function.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-06 02:29:17 +00:00
..
build Fixed non-Haiku build targets for libicon 2007-01-21 03:19:27 +00:00
compatibility/bsd More tweaks to the libbsd.so compatibility library: 2006-12-13 16:26:43 +00:00
cpp GCC 4 fix. 2005-12-11 16:22:51 +00:00
glibc Merged changes from branch build_system_redesign at revision 14573. 2005-10-29 16:27:43 +00:00
gnu adding gnu/termcap.h : is a copy of src/libs/termcap/termcap.h 2004-06-01 12:38:47 +00:00
legacy/network setsockopt and getsockopt use int as others functions 2006-06-23 14:19:11 +00:00
libs Turned off patented colored subpixel rendering. 2007-01-29 12:36:08 +00:00
os Applied patch by Vasilis Kaoutsis: 2007-02-04 13:32:36 +00:00
posix setpgrp() returns a pid_t, not an int. 2007-01-29 13:31:24 +00:00
private Reworked the way thread_yield() works: just setting the thread to B_LOWEST_ACTIVE_PRIORITY 2007-02-06 02:29:17 +00:00
tools Fixed the build of the cppunit stuff; if you are using IMPORT/EXPORT you should 2004-05-05 16:19:03 +00:00