8000 GitHub - YukangLiu/tinyco: A lightweight c++11 symmetric coroutine library for Linux system.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A lightweight c++11 symmetric coroutine library for Linux system.

License

Notifications You must be signed in to change notification settings

YukangLiu/tinyco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tinyco协程库


1、介绍:
tinyco协程库是一个极轻量(全部代码不超过四百行),纯c++11实现的对称协程库。
其中上下文切换封装的是glibc的ucontext。


2、使用:
tinyco只有两个接口,非常容易使用,分别是co_go(func)用于运行一个新的协程,co_yield()用于暂停当前协程。
具体使用见src/main.cc。


3、编译:
进入src文件夹make即可,因为有main.cc示例程序,所以make出来的为可执行文件。


附:有什么需求或者bug,建议,问题,都可以邮件 390161495@qq.com 讨论交流,谢谢。

About

A lightweight c++11 symmetric coroutine library for Linux system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0