aboutsummaryrefslogtreecommitdiff
path: root/tests/irayo_recursive.lua
diff options
context:
space:
mode:
authorBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2013-10-11 20:08:32 +0200
committerBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2013-10-11 20:08:32 +0200
commit44540b9335f3bbd2f6fda3e13329b28ec76b6d7a (patch)
tree4b6d659c0976e58f6cbd907b673c2b9d769b9e88 /tests/irayo_recursive.lua
parent938ee19cfcac09bfcfa1dd2a7861690436024410 (diff)
downloadlanes-44540b9335f3bbd2f6fda3e13329b28ec76b6d7a.tar.gz
lanes-44540b9335f3bbd2f6fda3e13329b28ec76b6d7a.tar.bz2
lanes-44540b9335f3bbd2f6fda3e13329b28ec76b6d7a.zip
version 3.7.0
* fix lanes.threads() not being available in a lane where lanes.configure() settings didn't contain track_lanes although the initial configure() call did. * require "lanes".configure() sequence is only necessary at the first require "lanes". * fix a crash at application shutdown where in some situations we could deinitialize the protected allocator mutex while a lane was still using it. * fix timers broken by change 69
Diffstat (limited to 'tests/irayo_recursive.lua')
-rw-r--r--tests/irayo_recursive.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/irayo_recursive.lua b/tests/irayo_recursive.lua
index f6fe87e..2f8b8a8 100644
--- a/tests/irayo_recursive.lua
+++ b/tests/irayo_recursive.lua
@@ -1,3 +1,4 @@
1local lanes = require "lanes".configure{ nb_keepers = 1, with_timers = false}
1-- 2--
2-- Bugs filed by irayo Jul-2008 3-- Bugs filed by irayo Jul-2008
3-- 4--
@@ -8,10 +9,9 @@ local function recurse()
8 print("level "..i); 9 print("level "..i);
9 if i > 10 then return "finished" end 10 if i > 10 then return "finished" end
10 11
11 local lanes = require "lanes" 12 --local lanes = require "lanes"
12 lanes.configure{ nb_keepers = 1, with_timers = false}
13 13
14 local lane = lanes.gen( "*", { globals = { ["i"]= i + 1 } }, recurse ) () 14 local lane = lanes.gen( "base,string,lanes.core", { globals = { ["i"]= i + 1 } }, recurse ) ()
15 return lane[1] 15 return lane[1]
16end 16end
17 17