Fix lwpReschedule()'s assertion "have runnable thread"
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 15 Jan 2010 21:06:51 +0000 (22:06 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2010 07:40:42 +0000 (08:40 +0100)
commit6386583c1c55fd4dd70b8a820e50100bfce61fad
tree452904e5a65e4de74e3419d77bb47c3ac8e943a4
parent43322c1cb73ce78bd7dbb153540ae584387d7e12
Fix lwpReschedule()'s assertion "have runnable thread"

If there is no runnable thread, we're deadlocked.  lwpReschedule() has
an assertion to catch this.  But it didn't work, and the code
following it would crash then.  Can't actually happen, because the
EventHandler thread is always runnable.  Spotted by the Clang Static
Analyzer.
src/lib/lwp/lwp.c