(lwpReschedule): Fix the previous revision.
This commit is contained in:
parent
a76c6d3a4a
commit
f958d3d683
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue