All Projects → kmalloc → coroutine

kmalloc / coroutine

Licence: other
a simple coroutine for c++

Programming Languages

C++
36643 projects - #6 most used programming language
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);


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].