diff options
author | Benoit 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 |
---|---|---|
committer | Benoit 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 |
commit | 44540b9335f3bbd2f6fda3e13329b28ec76b6d7a (patch) | |
tree | 4b6d659c0976e58f6cbd907b673c2b9d769b9e88 /tests/recursive.lua | |
parent | 938ee19cfcac09bfcfa1dd2a7861690436024410 (diff) | |
download | lanes-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/recursive.lua')
-rw-r--r-- | tests/recursive.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/recursive.lua b/tests/recursive.lua index 571fc1e..82a43b9 100644 --- a/tests/recursive.lua +++ b/tests/recursive.lua | |||
@@ -12,8 +12,10 @@ local function func( depth ) | |||
12 | end | 12 | end |
13 | 13 | ||
14 | local lanes = require "lanes" | 14 | local lanes = require "lanes" |
15 | -- lanes.configure() is gone after we call it... | 15 | -- lanes.configure() is available only at the first require() |
16 | lanes.configure() | 16 | if lanes.configure then |
17 | lanes = lanes.configure() | ||
18 | end | ||
17 | local lane= lanes.gen("*", func)( depth+1 ) | 19 | local lane= lanes.gen("*", func)( depth+1 ) |
18 | return lane[1] | 20 | return lane[1] |
19 | end | 21 | end |