使用setjmp和longjmp简单实现的一个协程切换函数如下所示: ... 启动子协程*/ startCoroutine(coroutine_func,NULL); /* 主协程循环*/ while(true) ...
確定! 回上一頁