Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

找到一处写错的地方 #2

Open
chunyi1994 opened this issue Mar 11, 2017 · 0 comments
Open

找到一处写错的地方 #2

chunyi1994 opened this issue Mar 11, 2017 · 0 comments

Comments

@chunyi1994
Copy link

uthread_resume这个函数里,有这么一段。
case SUSPEND:
swapcontext(&(schedule.main),&(t->ctx));

应该改成这样。
case SUSPEND:
schedule.running_thread = id;
swapcontext(&(schedule.main),&(t->ctx));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant