... |
... |
@@ -216,14 +216,21 @@ |
216 |
216 |
start |
217 |
217 |
:actor = new Actor(); |
218 |
218 |
:actor.init(); |
219 |
|
-if(actor.process())then(true) |
|
219 |
+if(actor.process())then(false) |
|
220 |
+:actor.killSelf(); |
|
221 |
+else(true) |
220 |
220 |
|B| |
221 |
221 |
:actor.postProcess(); |
222 |
222 |
|A| |
223 |
|
-else(false) |
224 |
|
-:actor.killSelf(); |
225 |
225 |
endif |
|
226 |
+while(actor.canFinish()) is (false) |
226 |
226 |
:actor.finish(); |
|
228 |
+endwhile(true) |
|
229 |
+fork |
|
230 |
+ :actor.stop(); |
|
231 |
+fork again |
|
232 |
+ :env.stop(); |
|
233 |
+endfork |
227 |
227 |
|
228 |
228 |
end |
229 |
229 |
|