]> git.pond.sub.org Git - empserver/commitdiff
(lwpReschedule): Fix the previous revision.
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 6 Dec 2005 00:12:34 +0000 (00:12 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 6 Dec 2005 00:12:34 +0000 (00:12 +0000)
src/lib/lwp/lwp.c

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