- 协程类
- 协程执行器
- 协程调度器
- 封装ucontext的基本操作成Coroutine类;
- 每个线程定义一个协程执行器CoExecutor, 可以执行多个协程
- 在协程调度器CoScheduler中开启多个CoExecutor来执行多个协程; CoScheduler中开启一个调度线程来调度不同CoExecutor中的协程对象.
mkdir build
cd build
cmake ..
make
Coroutine implementation based on ucontext written in C++.
mkdir build
cd build
cmake ..
make
Coroutine implementation based on ucontext written in C++.