From e3818609b54c81a83aa73beb322ea9c282b7add8 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 18 Jun 2024 09:03:43 +0200 Subject: When it is a function, config.allocator is called with a string hint --- docs/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index c9058fd..fe92565 100644 --- a/docs/index.html +++ b/docs/index.html @@ -289,7 +289,7 @@ If nil, Lua states are created with lua_newstate() and reuse the allocator from the master state.
If "protected", The default allocator obtained from lua_getallocf() in the master state is wrapped inside a critical section and used in all newly created states.
- If a function, this function is called prior to creating the state. It should return a full userdata containing the following structure: + If a function, this function is called prior to creating the state, with a single string argument, either "keeper" or "lane". It should return a full userdata containing the following structure:
@@ -347,7 +347,7 @@ .on_state_create - function/nil + nil/function If provided, will be called in every created Lua state right after initializing the base libraries, with a single string argument, either "lane" or "keeper".
@@ -392,7 +392,7 @@ .strip_functions
- nil/false/true + nil/boolean Controls function bytecode stripping when dumping them for lane transfer. Choose between faster copies or more debug info. Default is true. @@ -403,7 +403,7 @@ .track_lanes - nil/false/anything + nil/boolean Any non-nil|false value instructs Lanes keeps track of all lanes, so that lanes.threads() can list them. If false, lanes.threads() will raise an error when called. @@ -416,7 +416,7 @@ .verbose_errors - nil/false/true + nil/boolean If equal to true, Lanes will collect more information when transfering stuff across Lua states to help identify errors (with a cost). @@ -429,7 +429,7 @@ .with_timers - nil/false/true + nil/boolean If equal to false or nil, Lanes doesn't start the timer service, and the associated API will be absent from the interface (see below). @@ -440,11 +440,11 @@

- Once Lanes is configured, one should register with Lanes the modules exporting functions that will be transferred either during lane generation or through lindas. + Once Lanes is configured, one should register with Lanes the modules exporting functions that will be transferred either during lane generation or through Lindas.
Use lanes.require() for this purpose. This will call the original require(), then add the result to the lookup databases.
- It is also possible to register a given module with lanes.register(). This function will raise an error if the registered module is not a function or table. + It is also possible to register a given module a posteriori with lanes.register(). This function will raise an error if the registered module is not a function or table.

-- cgit v1.2.3-55-g6feb