-
Notifications
You must be signed in to change notification settings - Fork 4
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
coroutines-in-c/ #10
Comments
好文 |
好! |
想直接用的可以用 boost::asio 的 coroutine.hpp,就用的这个方法。 |
好文,狠狠收藏了 |
我的年度最佳 |
最近在研究这块,南京大学蒋炎岩老师的操作系统课程给了我很大启发,同时他的实验课提到其实C提供了保存现场和恢复现场的方法,也就是setjmp和longjmp。另外提供一个额外的视角,kotlin里面的协程也是靠类似的“设置label”的方式来实现的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用 C 语言实现协程
一种基于达夫设备的思想实现的协程。
https://mthli.xyz/coroutines-in-c/
The text was updated successfully, but these errors were encountered: