aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/scripts/lane/tasking_send_receive_code.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-04-18 10:26:19 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2025-04-18 10:26:19 +0200
commit022e40cc71beda874d0bad2cec227e472d5dd4af (patch)
tree7f0e03815217dd2e329a2ade1ed346247d5db884 /unit_tests/scripts/lane/tasking_send_receive_code.lua
parent1bff784b474261212a996ac9fc59389d53a69590 (diff)
downloadlanes-022e40cc71beda874d0bad2cec227e472d5dd4af.tar.gz
lanes-022e40cc71beda874d0bad2cec227e472d5dd4af.tar.bz2
lanes-022e40cc71beda874d0bad2cec227e472d5dd4af.zip
New feature: Linda periodical cancellation checks
* lanes.linda() api change: takes all settings in a single table argument * new linda creation argument wake_period * new lanes.configure setting linda_wake_period * adjusted all unit tests (one TODO test fails on purpose)
Diffstat (limited to 'unit_tests/scripts/lane/tasking_send_receive_code.lua')
-rw-r--r--unit_tests/scripts/lane/tasking_send_receive_code.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/unit_tests/scripts/lane/tasking_send_receive_code.lua b/unit_tests/scripts/lane/tasking_send_receive_code.lua
index e329a88..cb3663f 100644
--- a/unit_tests/scripts/lane/tasking_send_receive_code.lua
+++ b/unit_tests/scripts/lane/tasking_send_receive_code.lua
@@ -65,7 +65,7 @@ local function chunk2(linda)
65 linda:send("up", function() return ":)" end, "ok2") 65 linda:send("up", function() return ":)" end, "ok2")
66end 66end
67 67
68local linda = lanes_linda("auto") 68local linda = lanes_linda{name = "auto"}
69local t2= lanes_gen("debug,package,string,io", { name = 'auto', gc_cb = gc_cb }, chunk2)(linda) -- prepare & launch 69local t2= lanes_gen("debug,package,string,io", { name = 'auto', gc_cb = gc_cb }, chunk2)(linda) -- prepare & launch
70linda:send("down", function(linda) linda:send("up", "ready!") end, 70linda:send("down", function(linda) linda:send("up", "ready!") end,
71 "ok") 71 "ok")