From 2c69c99da47b1d708606da713433608c73ecdb88 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 6 May 2024 15:37:44 +0200 Subject: New lane generator option opt_tbl.name --- docs/index.html | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index ed1c367..f08947e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -684,7 +684,7 @@ table Sets the globals table for the launched threads. This can be used for giving them constants. The key/value pairs of table are transfered in the lane globals after the libraries have been loaded and the modules required. -
+
The global values of different lanes are in no manner connected; modifying one will only affect the particular lane. @@ -698,11 +698,20 @@ These tables are built from the modules listed here. required must be a list of strings, each one being the name of a module to be required. Each module is required with require() before the lanes function is invoked. So, from the required module's point of view, requiring it manually from inside the lane body or having it required this way doesn't change anything. From the lane body's point of view, the only difference is that a module not creating a global won't be accessible. Therefore, a lane body will also have to require a module manually, but this won't do anything more (see Lua's require documentation). -
+
ATTEMPTING TO TRANSFER A FUNCTION REGISTERED BY A MODULE NOT LISTED HERE WILL RAISE AN ERROR. - + + + .name + + string + + Name of the lane. If "auto", name is built from ar.short_src:ar.linedefined. Can be changed later from the inside of the lane with set_debug_threadname() (see below). + + + .gc_cb @@ -719,9 +728,9 @@ The priority of lanes generated in the range -3..+3 (default is 0). These values are a mapping over the actual priority range of the underlying implementation. -
+
Implementation and dependability of priorities varies by platform. Especially Linux kernel 2.6 is not supporting priorities in user mode. -
+
A lane can also change its own thread priority dynamically with lanes.set_thread_priority(). @@ -732,7 +741,7 @@ table 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 (Lua 5.1)/searchers (Lua 5.2) are transfered. -- cgit v1.2.3-55-g6feb