Skip to content

vitdevelop/coroutine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple coroutines

Simple stackfull coroutines using ucontext

Usage:

Build

make

Clean

make clean

Run

./main

Library functions

See coroutine.h file

Notes:

  • Userspace IO stdout buffer should be disabled setbuf(stdout, NULL) because memory leaks detected. (Unknown why)
  • If userspace IO stdout buffer is disabled, make sure that \n is put at end of line to prevent segmentation fault.

About

Simple C stackfull coroutine implementation using ucontext

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published