aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/lua
diff options
context:
space:
mode:
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/lua')
-rw-r--r--new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux b/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
index 137e5d4ab..12a0fe6a5 100644
--- a/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
@@ -424,13 +424,13 @@
(lua.block! (list (lua.local! "process" (#.Some (lua.nth "idx" "queue")))
(lua.when! (lua.apply "coroutine.resume" (list "process"))
(lua.apply "table.insert" (list "survivors" "process"))))))
- (lua.set! "queue" "survivors")))]
+ (lua.set! "queue" "survivors")))
+ loop-body! (lua.block! (list migrate-incoming!
+ consume-queue!))]
(lua.block! (list (lua.local! "queue" (#.Some (lua.array (list))))
- migrate-incoming!
- consume-queue!
- (lua.when! (lua.> (lua.int 0)
- (lua.length "queue"))
- (process//loop unit))))))
+ loop-body!
+ (lua.while! (|> (lua.length "queue") (lua.> (lua.int 0)))
+ loop-body!)))))
(runtime: (process//future procedure)
(lua.block! (list (lua.apply "table.insert" (list process//incoming