diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-04-18 10:26:19 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-04-18 10:26:19 +0200 |
commit | 022e40cc71beda874d0bad2cec227e472d5dd4af (patch) | |
tree | 7f0e03815217dd2e329a2ade1ed346247d5db884 /unit_tests/scripts/lane/tasking_send_receive_code.lua | |
parent | 1bff784b474261212a996ac9fc59389d53a69590 (diff) | |
download | lanes-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.lua | 2 |
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") |
66 | end | 66 | end |
67 | 67 | ||
68 | local linda = lanes_linda("auto") | 68 | local linda = lanes_linda{name = "auto"} |
69 | local t2= lanes_gen("debug,package,string,io", { name = 'auto', gc_cb = gc_cb }, chunk2)(linda) -- prepare & launch | 69 | local t2= lanes_gen("debug,package,string,io", { name = 'auto', gc_cb = gc_cb }, chunk2)(linda) -- prepare & launch |
70 | linda:send("down", function(linda) linda:send("up", "ready!") end, | 70 | linda:send("down", function(linda) linda:send("up", "ready!") end, |
71 | "ok") | 71 | "ok") |