摘要: coroutine 分 symmetry coroutine(yeild_to 方式) 和 asymmetry coroutine(yeild , resume).实现方式有: Duff device 的stack-base 方式,state变量和switch或goto实现。(参考 http://www.chiark.greenend.org.uk/~sgtatham/coroutines.htm... 阅读全文
posted @ 2010-07-28 10:45 napoleon_liu 阅读(389) 评论(0) 推荐(0) 编辑