Fix a very subtle bug that would cause a yielding thread to be scheduled twice in...
commitcb2c2efe445be4467b0abcf5c16f56dc316d479b
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Thu, 28 Feb 2008 17:40:18 +0000 (28 17:40 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Thu, 28 Feb 2008 17:40:18 +0000 (28 17:40 +0000)
treed7cb64eaf76a95bd8d01694b49d3344c78432cbd
parent939920e4d0212b25dd9a1836852c4d0a09f732d8
Fix a very subtle bug that would cause a yielding thread to be scheduled twice in a row even if others were woken and one of them should be selected. Evaluate next thread _after_ waking checks to keep fairness.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16444 a1c6a512-1295-4272-9138-f99709370657
firmware/thread.c