Skip to content

kmalloc/coroutine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages