(lwpReschedule): Fix the previous revision.

This commit is contained in:
Markus Armbruster 2005-12-06 00:12:34 +00:00
parent a76c6d3a4a
commit f958d3d683

View file

@ -110,7 +110,8 @@ lwpReschedule(void)
if (LwpCurrent) if (LwpCurrent)
lwpStatus(LwpCurrent, "switch out"); lwpStatus(LwpCurrent, "switch out");
/* do context switch */ /* do context switch */
if (LwpCurrent != nextp && !(LwpCurrent && lwpSave(LwpCurrent->context))) { i = LwpCurrent && lwpSave(LwpCurrent->context);
if (LwpCurrent != nextp && !i) {
/* restore previous context */ /* restore previous context */
lwpStatus(nextp, "switch in %d", nextp->pri); lwpStatus(nextp, "switch in %d", nextp->pri);
LwpCurrent = nextp; LwpCurrent = nextp;