aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Germain <bnt period germain arrobase gmail period com>2014-02-26 11:53:30 +0100
committerBenoit Germain <bnt period germain arrobase gmail period com>2014-02-26 11:53:30 +0100
commitfe3c44e63f99538a02d42d2504ba405a6977ec0a (patch)
treeee369b7c44fb52b2030b784297e2b5ee788305c3 /tests
parentd2bd8f65c678d898b6b7e5e92f76cb4dcce97b3c (diff)
downloadlanes-fe3c44e63f99538a02d42d2504ba405a6977ec0a.tar.gz
lanes-fe3c44e63f99538a02d42d2504ba405a6977ec0a.tar.bz2
lanes-fe3c44e63f99538a02d42d2504ba405a6977ec0a.zip
Multiverse compatibility
* bumped version to 3.9.2 * Internal rework: the whole Lanes engine now works "per universe" to allow concurrent Lanes execution in more than one embedded master state * this universe is a full userdata created in the master state, selfdestruct_gc is the __gc for this userdata * most of what was initialized only once is now per-universe * Fixed potential crashes at desinit if problems occur during keeper states initialisation * Fixed require() not always serialized properly * Raise an error instead of crashing on deep userdata prelude memory allocation failure * Added forgotten mutex desinitialisation at universe shutdown
Diffstat (limited to 'tests')
-rw-r--r--tests/keeper.lua2
-rw-r--r--tests/recursive.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/keeper.lua b/tests/keeper.lua
index 4aff51c..f8c915d 100644
--- a/tests/keeper.lua
+++ b/tests/keeper.lua
@@ -4,7 +4,7 @@
4-- Test program for Lua Lanes 4-- Test program for Lua Lanes
5-- 5--
6 6
7local lanes = require "lanes".configure{ with_timers = false} 7local lanes = require "lanes".configure{ with_timers = false, nb_keepers = 200}
8 8
9local function keeper(linda) 9local function keeper(linda)
10 local mt= { 10 local mt= {
diff --git a/tests/recursive.lua b/tests/recursive.lua
index 82a43b9..139f4c8 100644
--- a/tests/recursive.lua
+++ b/tests/recursive.lua
@@ -14,7 +14,7 @@ local function func( depth )
14 local lanes = require "lanes" 14 local lanes = require "lanes"
15 -- lanes.configure() is available only at the first require() 15 -- lanes.configure() is available only at the first require()
16 if lanes.configure then 16 if lanes.configure then
17 lanes = lanes.configure() 17 lanes = lanes.configure{with_timers = false}
18 end 18 end
19 local lane= lanes.gen("*", func)( depth+1 ) 19 local lane= lanes.gen("*", func)( depth+1 )
20 return lane[1] 20 return lane[1]