Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bruce2008github/cpp_coroutine

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note:

This is my implementation of the cpp coroutine.

For coroutine, pls refer to http://en.wikipedia.org/wiki/Coroutine).

Actually, when I study the google's go program language(golang).

I find the goroutine(golang's coroutine) and channel are very elegance program concept.

So, I want to implement them in cpp :).

Currently, it's just a toy code,and it's very interesing,

but it's not very easy to undertand as the normal code,as they can jump between the function stack.

I use the classic producer-consumer as an example to verify my implementation.

Build:

  1. Make

Usage:

  1. ./main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.