CODE 项目整体迁移至码云平台(https://gitee.com)公告
Tencent / libco C++

libco是一个有趣的协程基础库,仅有的几个函数接口 co_create/co_resume/co_yield 再配合 co_poll,可以支持同步或者异步的写法,如线程库一样轻松,库里面提供了socket族函数的hook,使得后台逻辑服务几乎不用修改逻辑代码就可以完成异步化改造。关联讨论组https://code.csdn.net/groups/751697

socket 线程 异步
拷贝地址

项目最近一次提交:4 年多 前 4972baa39

文件列表 提交日期 作者 提交信息 提交编号
LICENSE.txt 2014-04-23 18:10:09 No_avatar unknown init c438106b
Makefile 2014-04-23 18:10:09 No_avatar unknown init c438106b
README.md 2014-04-23 16:45:29 4_u012523737 CODE_Support first commit bd010d1c
co.mk 2014-04-23 18:10:09 No_avatar unknown init c438106b
co_hook_sys_call.cpp 2014-04-23 18:10:09 No_avatar unknown init c438106b
co_routine.cpp 2014-04-23 18:10:09 No_avatar unknown init c438106b
co_routine.h 2014-04-23 18:10:09 No_avatar unknown init c438106b
co_routine_inner.h 2014-04-23 18:10:09 No_avatar unknown init c438106b
coctx.cpp 2014-05-04 11:25:45 No_avatar unknown fix 4972baa3
coctx.h 2014-04-23 18:10:09 No_avatar unknown init c438106b
coctx_swap.S 2014-05-04 11:25:45 No_avatar unknown fix 4972baa3
example_echocli.cpp 2014-04-23 18:10:09 No_avatar unknown init c438106b
example_echosvr.cpp 2014-04-23 18:10:09 No_avatar unknown init c438106b
example_poll.cpp 2014-04-23 18:10:09 No_avatar unknown init c438106b
example_thread.cpp 2014-04-23 18:10:09 No_avatar unknown init c438106b

README.md

Hello libco