We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06d55e7 commit e4fe4b6Copy full SHA for e4fe4b6
README.md
@@ -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