Skip to content

Commit e4fe4b6

Browse files
update
1 parent 06d55e7 commit e4fe4b6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Note:
2+
3+
This is my implementation of the cpp coroutine.
4+
5+
For coroutine, pls refer to http://en.wikipedia.org/wiki/Coroutine).
6+
7+
Actually, when I study the google's go program language(golang).
8+
9+
I find the goroutine(golang's coroutine) and channel are very elegance program concept.
10+
11+
So, I want to implement them in cpp :).
12+
13+
Currently, it's just a toy code,and it's very interesing,
14+
15+
but it's not very easy to undertand as the normal code,as they can jump between the function stack.
16+
17+
I use the classic producer-consumer as an example to verify my implementation.
18+
19+
Build:
20+
21+
1) Make
22+
23+
Usage:
24+
25+
1) ./main

0 commit comments

Comments
 (0)