55 < title > Cookbook » Asynchronous Tasking | Taskflow QuickStart</ title >
66 < link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600 " />
77 < link rel ="stylesheet " href ="m-dark+documentation.compiled.css " />
8- < link rel ="icon " href ="favicon.ico " type ="image/x- icon " />
8+ < link rel ="icon " href ="favicon.ico " type ="image/vnd.microsoft. icon " />
99 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
1010 < meta name ="theme-color " content ="#22272e " />
1111</ head >
@@ -110,102 +110,102 @@ <h3>Contents</h3>
110110< span class ="w "> </ span > < span class ="n "> std</ span > < span class ="o "> ::</ span > < span class ="n "> cout</ span > < span class ="w "> </ span > < span class ="o "> <<</ span > < span class ="w "> </ span > < span class ="n "> N</ span > < span class ="w "> </ span > < span class ="o "> <<</ span > < span class ="w "> </ span > < span class ="s "> "-th Fibonacci number is "</ span > < span class ="w "> </ span > < span class ="o "> <<</ span > < span class ="w "> </ span > < span class ="n "> res</ span > < span class ="w "> </ span > < span class ="o "> <<</ span > < span class ="w "> </ span > < span class ="sc "> '\n'</ span > < span class ="p "> ;</ span >
111111
112112< span class ="w "> </ span > < span class ="k "> return</ span > < span class ="w "> </ span > < span class ="mi "> 0</ span > < span class ="p "> ;</ span >
113- < span class ="p "> }</ span > </ pre > < p > The figure below shows the execution diagram, where the suffix *_1 represent the left child spawned by its parent runtime.</ p > < div class ="m-graph "> < svg style ="width: 36.800rem ; height: 26.000rem; " viewBox ="0.00 0.00 368.25 260.00 ">
113+ < span class ="p "> }</ span > </ pre > < p > The figure below shows the execution diagram, where the suffix *_1 represent the left child spawned by its parent runtime.</ p > < div class ="m-graph "> < svg style ="width: 40.400rem ; height: 26.000rem; " viewBox ="0.00 0.00 404.00 260.00 ">
114114< g transform ="scale(1 1) rotate(0) translate(4 256) ">
115115< title > Fibonacci</ title >
116116< g class ="m-node m-flat ">
117117< title > F4</ title >
118- < polygon points ="234.25 ,-252 168 ,-252 168 ,-216 234.25 ,-216 234.25 ,-252 "/>
119- < text text-anchor ="middle " x ="201.12 " y ="-235.75 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(4)</ text >
120- < text text-anchor ="middle " x ="201.12 " y ="-224.5 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt]</ text >
118+ < polygon points ="258 ,-252 184 ,-252 184 ,-216 258 ,-216 258 ,-252 "/>
119+ < text text-anchor ="middle " x ="221 " y ="-237 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(4)</ text >
120+ < text text-anchor ="middle " x ="221 " y ="-226 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt]</ text >
121121</ g >
122122< g class ="m-node m-flat ">
123123< title > F3_1</ title >
124- < polygon points ="192.25 ,-180 126 ,-180 126 ,-144 192.25 ,-144 192.25 ,-180 "/>
125- < text text-anchor ="middle " x ="159.12 " y ="-163.75 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(3)</ text >
126- < text text-anchor ="middle " x ="159.12 " y ="-152.5 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1]</ text >
124+ < polygon points ="212 ,-180 138 ,-180 138 ,-144 212 ,-144 212 ,-180 "/>
125+ < text text-anchor ="middle " x ="175 " y ="-165 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(3)</ text >
126+ < text text-anchor ="middle " x ="175 " y ="-154 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1]</ text >
127127</ g >
128128< g class ="m-edge ">
129129< title > F4->F3_1</ title >
130- < path d ="M190.74 ,-215.7C186.06 ,-207.9 180.43,-198.51 175.22,-189.83 "/>
131- < polygon points ="178.31,-188.18 170.17,-181.4 172.31,-191.78 178.31,-188.18 "/>
130+ < path d ="M209.63 ,-215.7C204.28 ,-207.56 197.8,-197.69 191.89,-188.7 "/>
131+ < polygon points ="194.66,-186.54 186.24,-180.1 188.81,-190.38 194.66,-186.54 "/>
132132</ g >
133133< g class ="m-node m-flat ">
134134< title > F2_2</ title >
135- < polygon points ="276.25 ,-180 210 ,-180 210 ,-144 276.25 ,-144 276.25 ,-180 "/>
136- < text text-anchor ="middle " x ="243.12 " y ="-163.75 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(2)</ text >
137- < text text-anchor ="middle " x ="243.12 " y ="-152.5 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt]</ text >
135+ < polygon points ="304 ,-180 230 ,-180 230 ,-144 304 ,-144 304 ,-180 "/>
136+ < text text-anchor ="middle " x ="267 " y ="-165 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(2)</ text >
137+ < text text-anchor ="middle " x ="267 " y ="-154 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt]</ text >
138138</ g >
139139< g class ="m-edge ">
140140< title > F4->F2_2</ title >
141- < path d ="M211.51 ,-215.7C216.19 ,-207.9 221.82,-198.51 227.03,-189.83 "/>
142- < polygon points ="229.94,-191.78 232.08,-181.4 223.94,-188.18 229.94,-191.78 "/>
141+ < path d ="M232.37 ,-215.7C237.72 ,-207.56 244.2,-197.69 250.11,-188.7 "/>
142+ < polygon points ="253.19,-190.38 255.76,-180.1 247.34,-186.54 253.19,-190.38 "/>
143143</ g >
144144< g class ="m-node m-flat ">
145145< title > F2_1</ title >
146- < polygon points ="108.25 ,-108 42 ,-108 42 ,-72 108.25 ,-72 108.25 ,-108 "/>
147- < text text-anchor ="middle " x ="75.12 " y ="-91.75 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(2)</ text >
148- < text text-anchor ="middle " x ="75.12 " y ="-80.5 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1_1]</ text >
146+ < polygon points ="120 ,-108 46 ,-108 46 ,-72 120 ,-72 120 ,-108 "/>
147+ < text text-anchor ="middle " x ="83 " y ="-93 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(2)</ text >
148+ < text text-anchor ="middle " x ="83 " y ="-82 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1_1]</ text >
149149</ g >
150150< g class ="m-edge ">
151151< title > F3_1->F2_1</ title >
152- < path d ="M138.36 ,-143.7C128.16,-135.2 115.7,-124.81 104.54,-115.51 "/>
153- < polygon points ="107.03,-113.03 97.1,-109.32 102.55,-118.41 107.03,-113.03 "/>
152+ < path d ="M152.26 ,-143.7C140.56,-134.8 126.14,-123.82 113.49,-114.2 "/>
153+ < polygon points ="115.56,-111.37 105.48,-108.1 111.32,-116.94 115.56,-111.37 "/>
154154</ g >
155155< g class ="m-node m-flat ">
156156< title > F1_2</ title >
157- < polygon points ="192.25 ,-108 126 ,-108 126 ,-72 192.25 ,-72 192.25 ,-108 "/>
158- < text text-anchor ="middle " x ="159.12 " y ="-91.75 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(1)</ text >
159- < text text-anchor ="middle " x ="159.12 " y ="-80.5 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1]</ text >
157+ < polygon points ="212 ,-108 138 ,-108 138 ,-72 212 ,-72 212 ,-108 "/>
158+ < text text-anchor ="middle " x ="175 " y ="-93 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(1)</ text >
159+ < text text-anchor ="middle " x ="175 " y ="-82 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1]</ text >
160160</ g >
161161< g class ="m-edge ">
162162< title > F3_1->F1_2</ title >
163- < path d ="M159.12 ,-143.7C159.12,-136.41 159.12,-127.73 159.12,-119.54 "/>
164- < polygon points ="162.63,-119.62 159.13,-109.62 155.63,-119.62 162.63,-119.62 "/>
163+ < path d ="M175 ,-143.7C175,-135.98 175,-126.71 175,-118.11 "/>
164+ < polygon points ="178.5,-118.1 175,-108.1 171.5,-118.1 178.5,-118.1 "/>
165165</ g >
166166< g class ="m-node m-flat ">
167167< title > F1_1</ title >
168- < polygon points ="66.25 ,-36 0,-36 0,0 66.25 ,0 66.25 ,-36 "/>
169- < text text-anchor ="middle " x ="33.12 " y ="-19.75 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(1)</ text >
170- < text text-anchor ="middle " x ="33.12 " y ="-8.5 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1_1_1]</ text >
168+ < polygon points ="74 ,-36 0,-36 0,0 74 ,0 74 ,-36 "/>
169+ < text text-anchor ="middle " x ="37 " y ="-21 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(1)</ text >
170+ < text text-anchor ="middle " x ="37 " y ="-10 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1_1_1]</ text >
171171</ g >
172172< g class ="m-edge ">
173173< title > F2_1->F1_1</ title >
174- < path d ="M64.74 ,-71.7C60.06 ,-63.9 54.43,-54.51 49.22,-45.83 "/>
175- < polygon points ="52.31,-44.18 44.17,-37.4 46.31,-47.78 52.31,-44.18 "/>
174+ < path d ="M71.63 ,-71.7C66.28 ,-63.56 59.8,-53.69 53.89,-44.7 "/>
175+ < polygon points ="56.66,-42.54 48.24,-36.1 50.81,-46.38 56.66,-42.54 "/>
176176</ g >
177177< g class ="m-node m-flat ">
178178< title > F0_1</ title >
179- < polygon points ="150.25 ,-36 84 ,-36 84 ,0 150.25 ,0 150.25 ,-36 "/>
180- < text text-anchor ="middle " x ="117.12 " y ="-19.75 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(0)</ text >
181- < text text-anchor ="middle " x ="117.12 " y ="-8.5 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1_1]</ text >
179+ < polygon points ="166 ,-36 92 ,-36 92 ,0 166 ,0 166 ,-36 "/>
180+ < text text-anchor ="middle " x ="129 " y ="-21 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(0)</ text >
181+ < text text-anchor ="middle " x ="129 " y ="-10 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1_1]</ text >
182182</ g >
183183< g class ="m-edge ">
184184< title > F2_1->F0_1</ title >
185- < path d ="M85.51 ,-71.7C90.19 ,-63.9 95.82,-54.51 101.03,-45.83 "/>
186- < polygon points ="103.94,-47.78 106.08,-37.4 97.94,-44.18 103.94,-47.78 "/>
185+ < path d ="M94.37 ,-71.7C99.72 ,-63.56 106.2,-53.69 112.11,-44.7 "/>
186+ < polygon points ="115.19,-46.38 117.76,-36.1 109.34,-42.54 115.19,-46.38 "/>
187187</ g >
188188< g class ="m-node m-flat ">
189189< title > F1_3</ title >
190- < polygon points ="276.25 ,-108 210 ,-108 210 ,-72 276.25 ,-72 276.25 ,-108 "/>
191- < text text-anchor ="middle " x ="243.12 " y ="-91.75 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(1)</ text >
192- < text text-anchor ="middle " x ="243.12 " y ="-80.5 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1]</ text >
190+ < polygon points ="304 ,-108 230 ,-108 230 ,-72 304 ,-72 304 ,-108 "/>
191+ < text text-anchor ="middle " x ="267 " y ="-93 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(1)</ text >
192+ < text text-anchor ="middle " x ="267 " y ="-82 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt1]</ text >
193193</ g >
194194< g class ="m-edge ">
195195< title > F2_2->F1_3</ title >
196- < path d ="M243.12 ,-143.7C243.12,-136.41 243.12,-127.73 243.12,-119.54 "/>
197- < polygon points ="246.63,-119.62 243.13,-109.62 239.63,-119.62 246.63,-119.62 "/>
196+ < path d ="M267 ,-143.7C267,-135.98 267,-126.71 267,-118.11 "/>
197+ < polygon points ="270.5,-118.1 267,-108.1 263.5,-118.1 270.5,-118.1 "/>
198198</ g >
199199< g class ="m-node m-flat ">
200200< title > F0_2</ title >
201- < polygon points ="360.25 ,-108 294 ,-108 294 ,-72 360.25 ,-72 360.25 ,-108 "/>
202- < text text-anchor ="middle " x ="327.12 " y ="-91.75 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(0)</ text >
203- < text text-anchor ="middle " x ="327.12 " y ="-80.5 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt]</ text >
201+ < polygon points ="396 ,-108 322 ,-108 322 ,-72 396 ,-72 396 ,-108 "/>
202+ < text text-anchor ="middle " x ="359 " y ="-93 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> fibonacci(0)</ text >
203+ < text text-anchor ="middle " x ="359 " y ="-82 " font-family ="Helvetica,sans-Serif " font-size ="10.00 "> [rt]</ text >
204204</ g >
205205< g class ="m-edge ">
206206< title > F2_2->F0_2</ title >
207- < path d ="M263.89 ,-143.7C274.09,-135.2 286.55,-124.81 297.71,-115.51 "/>
208- < polygon points ="299.7,-118.41 305.15,-109.32 295.22,-113.03 299.7,-118.41 "/>
207+ < path d ="M289.74 ,-143.7C301.44,-134.8 315.86,-123.82 328.51,-114.2 "/>
208+ < polygon points ="330.68,-116.94 336.52,-108.1 326.44,-111.37 330.68,-116.94 "/>
209209</ g >
210210</ g >
211211</ svg >
@@ -254,7 +254,7 @@ <h3>Contents</h3>
254254 < div class ="m-container ">
255255 < div class ="m-row ">
256256 < div class ="m-col-l-10 m-push-l-1 ">
257- < p > Taskflow handbook is part of the < a href ="https://taskflow.github.io "> Taskflow project</ a > , copyright © < a href ="https://tsung-wei-huang.github.io/ "> Dr. Tsung-Wei Huang</ a > , 2018–2025.< br /> Generated by < a href ="https://doxygen.org/ "> Doxygen</ a > 1.13 .1 and < a href ="https://mcss.mosra.cz/ "> m.css</ a > .</ p >
257+ < p > Taskflow handbook is part of the < a href ="https://taskflow.github.io "> Taskflow project</ a > , copyright © < a href ="https://tsung-wei-huang.github.io/ "> Dr. Tsung-Wei Huang</ a > , 2018–2025.< br /> Generated by < a href ="https://doxygen.org/ "> Doxygen</ a > 1.9 .1 and < a href ="https://mcss.mosra.cz/ "> m.css</ a > .</ p >
258258 </ div >
259259 </ div >
260260 </ div >
0 commit comments