SkillAgentSearch skills...

Coproc

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

Install / Use

/learn @hunterzhao/Coproc
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated4y ago
Forks2

Languages

C++

Security Score

55/100

Audited on Aug 28, 2021

No findings