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/fibonacci.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/fibonacci.lua')
-rw-r--r-- | tests/fibonacci.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/fibonacci.lua b/tests/fibonacci.lua index 5cdb4be..6dba1dd 100644 --- a/tests/fibonacci.lua +++ b/tests/fibonacci.lua | |||
@@ -12,8 +12,7 @@ | |||
12 | 12 | ||
13 | -- Need to say it's 'local' so it can be an upvalue | 13 | -- Need to say it's 'local' so it can be an upvalue |
14 | -- | 14 | -- |
15 | local lanes = require "lanes" | 15 | local lanes = require "lanes".configure{ nb_keepers =1, with_timers = false} |
16 | lanes.configure{ nb_keepers =1, with_timers = false} | ||
17 | 16 | ||
18 | local function WR(str) | 17 | local function WR(str) |
19 | io.stderr:write( str.."\n" ) | 18 | io.stderr:write( str.."\n" ) |
@@ -33,7 +32,7 @@ end | |||
33 | -- | 32 | -- |
34 | local function fib( n ) | 33 | local function fib( n ) |
35 | set_debug_threadname( "fib(" .. n .. ")") | 34 | set_debug_threadname( "fib(" .. n .. ")") |
36 | local lanes = require"lanes".configure() | 35 | local lanes = require"lanes" |
37 | -- | 36 | -- |
38 | local sum | 37 | local sum |
39 | local floor= assert(math.floor) | 38 | local floor= assert(math.floor) |