From 022e40cc71beda874d0bad2cec227e472d5dd4af Mon Sep 17 00:00:00 2001
From: Benoit Germain
- This document was revised on 17-Mar-25, and applies to version 4.0.0.
+ This document was revised on 18-Apr-25, and applies to version 4.0.0.
- Copyright © 2007-24 Asko Kauppi, Benoit Germain. All rights reserved.
+ Copyright © 2007-25 Asko Kauppi, Benoit Germain. All rights reserved.
Lua Lanes is published under the same MIT license as Lua 5.1, 5.2, 5.3 and 5.4.
- lanes.configure accepts an optional options table as sole argument. + lanes.configure accepts an optional table as sole argument.
| name | @@ -336,6 +336,22 @@|||
|---|---|---|---|
+ .linda_wake_period
+ |
+ + number > 0 + | +
+ Sets the default period in seconds a linda will wake by itself during blocked operations. Default is never. + When a Linda enters a blocking call (send(), receive(), receive_batched(), sleep()), it normally sleeps either until the operation completes + or the specified timeout expires. With this setting, the default behavior can be changed to wake periodically. This can help for example with timing issues where a lane is signalled + for cancellation, but a linda inside the lane was in the middle of processing an operation but did not actually start the wait. This can result in the signal to be ignored, thus + causing the Linda to wait out the full operation timeout before cancellation is processed. + |
+ |
.nb_user_keepers
@@ -1222,7 +1238,7 @@
|