diff options
author | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-01-20 10:51:11 +0100 |
---|---|---|
committer | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-01-20 10:51:11 +0100 |
commit | cf9b09ff352611fb8cee3679127f3655cbe73ae7 (patch) | |
tree | 011ae091b0bff2d10a9e8dd0fd564ab2b6365f86 /src/lanes.lua | |
parent | 1843a0add00186eee129b0b0a2ee605866acbb61 (diff) | |
download | lanes-cf9b09ff352611fb8cee3679127f3655cbe73ae7.tar.gz lanes-cf9b09ff352611fb8cee3679127f3655cbe73ae7.tar.bz2 lanes-cf9b09ff352611fb8cee3679127f3655cbe73ae7.zip |
get()/set() improvements
* bumped version to 3.8.0
* linda:set() accepts multiple values to set in the specified slot
* linda:get() accepts an optional count to peek several values at once
* nil values are now converted just as in send()/receive()
Diffstat (limited to '')
-rw-r--r-- | src/lanes.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index e7b9715..9a0287d 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -596,8 +596,8 @@ end -- settings.with_timers | |||
596 | -- | 596 | -- |
597 | -- PUBLIC LANES API | 597 | -- PUBLIC LANES API |
598 | local genlock = function( linda, key, N) | 598 | local genlock = function( linda, key, N) |
599 | linda:set( key) -- clears existing data | ||
599 | linda:limit( key, N) | 600 | linda:limit( key, N) |
600 | linda:set( key, nil) -- clears existing data | ||
601 | 601 | ||
602 | -- | 602 | -- |
603 | -- [true [, ...]= trues(uint) | 603 | -- [true [, ...]= trues(uint) |