diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-14 14:53:09 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-14 14:53:09 +0100 |
commit | 512f4c0b46ea5cc359e673b7379cd81925863121 (patch) | |
tree | 1e72167d8d63f44109719db9643d4c0445b17d57 /tests/cyclic.lua | |
parent | 0aa030db022c57947afbae3b97038a403973e3cd (diff) | |
download | lanes-master.tar.gz lanes-master.tar.bz2 lanes-master.zip |
Diffstat (limited to 'tests/cyclic.lua')
-rw-r--r-- | tests/cyclic.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cyclic.lua b/tests/cyclic.lua index ed4bdba..ca4b9f5 100644 --- a/tests/cyclic.lua +++ b/tests/cyclic.lua | |||
@@ -31,7 +31,7 @@ local function lane1() | |||
31 | assert( b[1]==a ) | 31 | assert( b[1]==a ) |
32 | return true | 32 | return true |
33 | end | 33 | end |
34 | local L1= lanes.gen( "io", lane1 )() | 34 | local L1= lanes.gen( "io", { name = 'auto' }, lane1 )() |
35 | -- ...running | 35 | -- ...running |
36 | 36 | ||
37 | -- Getting the tables as arguments should also keep the linkage | 37 | -- Getting the tables as arguments should also keep the linkage |
@@ -42,7 +42,7 @@ local function lane2( aa, bb ) | |||
42 | assert( bb[1]==aa ) | 42 | assert( bb[1]==aa ) |
43 | return true | 43 | return true |
44 | end | 44 | end |
45 | local L2= lanes.gen( "io", lane2 )( a, b ) | 45 | local L2= lanes.gen( "io", { name = 'auto' }, lane2 )( a, b ) |
46 | -- ...running | 46 | -- ...running |
47 | 47 | ||
48 | -- Really unnecessary, but let's try a directly recursive table | 48 | -- Really unnecessary, but let's try a directly recursive table |
@@ -55,7 +55,7 @@ local function lane3( cc ) | |||
55 | assert( cc and cc.a==cc ) | 55 | assert( cc and cc.a==cc ) |
56 | return true | 56 | return true |
57 | end | 57 | end |
58 | local L3= lanes.gen("io", lane3)(c) | 58 | local L3= lanes.gen("io", { name = 'auto' }, lane3)(c) |
59 | 59 | ||
60 | -- Without a wait, exit from the main lane will close the process | 60 | -- Without a wait, exit from the main lane will close the process |
61 | -- | 61 | -- |