We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03a02d6 commit 6a6d433Copy full SHA for 6a6d433
doc/design/concurrent_programming.md
@@ -83,6 +83,7 @@ message ProgramDesc {
83
}
84
85
block[1] = Block {
86
+ parent = 0,
87
vars = [x, y, index],
88
ops = [
89
slice(input = [X, index], output = x) # index is initialized by parallel_for
@@ -121,6 +122,7 @@ An explanation of the above program:
121
122
2. creates `len(L)` threads by calling into the `ThreadPool` singleton, each thread
123
1. creates an Executor instance, and
124
2. calls `Executor.Run(block)`, where `block` is block 1 as explained above.
125
+1. Please be aware that block 1 is a sub-block of block 0, so ops in block 1 could refer to variables defined in block 0.
126
127
### The Worker Program
128
0 commit comments