From 242feeb342f68999b02c2b8dc4614abefdab8431 Mon Sep 17 00:00:00 2001
From: Benoit Germain This document was revised on 21-Aug-12, and applies to version 3.2.0
+ This document was revised on 10-Sep-12, and applies to version 3.3.0
Copyright © 2007-12 Asko Kauppi, Benoit Germain. All rights reserved.
Lua Lanes is published under the same MIT license as Lua 5.1 and 5.2.
-
.nb_keepers
- Controls the number of keeper states used internally by lindas to transfer data between lanes. (see below). Default is 1.
+ Controls the number of keeper states used internally by lindas to transfer data between lanes. (see below). Default is 1.
@@ -213,7 +213,7 @@ Or use Lua Rocks package m
If equal to false, Lanes doesn't start the timer service,
and the associated API will be absent from the interface (see below).
- Any other value (including nil), starts the timer service.
+ Any other value (including nil), starts the timer service. Default is true.
@@ -223,9 +223,15 @@ Or use Lua Rocks package m
+
+
If provided, will be called in every created Lua state (keepers and lanes) right after it is created, and *before* any library is loaded.
- That way, all C functions it loads in the state can be added to the function lookup database.
+ That way, all C functions it loads in the state can be added to the function lookup database. Default is nil.
+ .shutdown_timeout
+
+ (Since v3.3.0) Sets the duration in seconds Lanes will wait for graceful termination of running lanes at application shutdown. Irrelevant for builds using pthreads. Default is 0.25.
+ Creation
@@ -292,7 +298,7 @@ also in the new lanes.
"string" string.* namespace "table" table.* namespace
-
+ "*" all standard libraries "*" all standard libraries (including those specific to LuaJIT and not listed above)
@@ -318,7 +324,7 @@ also in the new lanes.
.globals
globals_tbl
package
contents overrides, if needed.
Specifying it when libs_str
doesn't cause the package
library to be loaded will generate an error.
- If not specified, the created lane will receive the current values of package. Only path, cpath, preload and loaders are transfered.
+ If not specified, the created lane will receive the current values of package. Only path, cpath, preload and loaders are transfered.
This is similar to coroutine.status, which has: "running" / @@ -441,8 +448,9 @@ If the lane ended in an error, it is propagated to master state at this place.
Waits until the lane finishes, or timeout seconds have passed. Returns nil on timeout, nil,err,stack_tbl if the lane hit an error, -or the return values of the lane. Unlike in reading the results in table -fashion, errors are not propagated. +nil, "killed" if forcefully killed (starting with v3.3.0), or the return values of the lane. +Unlike in reading the results in table fashion, errors are not propagated. +
@@ -490,7 +498,7 @@ that id over a Linda once that thread is done (as the last thing you do).
Cancelling
|