wh-forker / coroutine

a simple coroutine for c++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple coroutine library for c++, modeling coroutine from lua.

usage:
1. create a schedluer:
   CoroutineScheduler* sched = new CoroutineScheduler(1024);
2. create coroutine:
   int id = sched->CreateCoroutine(func, arg);
3. run coroutine:
   uintptr_t ret = sched->ResumeCoroutine(id);


About

a simple coroutine for c++


Languages

Language:C++ 98.9%Language:Makefile 1.1%