Skip to content

Garfiled/coroutine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coroutine

implement c++ coroutine

Use

// create coroutine job
int* fi = new int;
*fi = 100;
go(foo,fi);

char* name=(char*)"liu";
go(hi,name);

go(loop,NULL);

Features

  • simple use with go keyword
  • support yield to schedule
  • support signal to auto schedule

Todo

  • integrate with net epoll
  • support 64bit
  • signal will terminate sleep/read...syscall (how to fix?)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published