Skip to content
forked from hunterzhao/Coproc

A coroutine lib using c++ and ucontext epoll 一个使用c++ ucontext epoll实现的协程库

Notifications You must be signed in to change notification settings

PlumpMath/Coproc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coproc

A coroutine lib using c++ and ucontext epoll

this lib can change the asynchronous IO to synchronous IO the scheduler is powered by epoll

example:

code...

the non-block IO call 
add the file descripter to the scheduler
yield() release the cpu and back when the fd ready

continue code... looks like synchronous way

the main file is the example of a tcpserver

About

A coroutine lib using c++ and ucontext epoll 一个使用c++ ucontext epoll实现的协程库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.6%
  • Makefile 3.4%