diff options
author | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-02-13 16:09:15 +0100 |
---|---|---|
committer | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-02-13 16:09:15 +0100 |
commit | 32ad991eb8c590472607d61e9a831d2ca9db05c5 (patch) | |
tree | 1e3920223e81a5970241f9687db9129d7ec7bb2e /tests/linda_perf.lua | |
parent | c38429579de57d338e0a1c14a7ed7b4aa90e059a (diff) | |
download | lanes-32ad991eb8c590472607d61e9a831d2ca9db05c5.tar.gz lanes-32ad991eb8c590472607d61e9a831d2ca9db05c5.tar.bz2 lanes-32ad991eb8c590472607d61e9a831d2ca9db05c5.zip |
more fixes/tweaks about cancelled lindas
* bumped version to 3.8.5
* linda:limit() returns lanes.cancel_error on a limited linda
* lanes.genlock() and lanes.genatomic() support cancelled lindas by
returning lanes.cancel_error whenever appropriate
* fixed a possible Lua stack overflow when calling linda:dump()
* fixed cases where linda:send() and linda:receive() would not return
lanes.cancel_error when they should
Diffstat (limited to 'tests/linda_perf.lua')
-rw-r--r-- | tests/linda_perf.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/linda_perf.lua b/tests/linda_perf.lua index 1d92c8e..1a44d07 100644 --- a/tests/linda_perf.lua +++ b/tests/linda_perf.lua | |||
@@ -31,8 +31,8 @@ local batched = function( l, loop, batch) | |||
31 | print( val) | 31 | print( val) |
32 | end | 32 | end |
33 | 33 | ||
34 | local lane_eater_gen = lanes.gen( "*", eater) | 34 | local lane_eater_gen = lanes.gen( "*", {priority = 3}, eater) |
35 | local lane_batched_gen = lanes.gen( "*", batched) | 35 | local lane_batched_gen = lanes.gen( "*", {priority = 3}, batched) |
36 | 36 | ||
37 | -- main thread writes data while a lane reads it | 37 | -- main thread writes data while a lane reads it |
38 | local function ziva( preloop, loop, batch) | 38 | local function ziva( preloop, loop, batch) |