From 8508f12ab2f84ecc4472254564b4585d697b5778 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 26 Apr 2024 10:25:11 +0200 Subject: Update documentation --- docs/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index 9b3e5e7..ed1c367 100644 --- a/docs/index.html +++ b/docs/index.html @@ -185,7 +185,7 @@

luaopen_lanes_embedded leaves the module table on the stack. lanes.configure() must still be called in order to use Lanes.
- If _luaopen_lanes is NULL, a default loader will simply attempt the equivalent of luaL_dofile(L, "lanes.lua"). + If _luaopen_lanes is nullptr, a default loader will simply attempt the equivalent of luaL_dofile(L, "lanes.lua").

@@ -1172,9 +1172,9 @@
send() returns lanes.cancel_error if interrupted by a soft cancel request.
- If no data is provided after the key, send() raises an error. If provided with linda.null before the actual key and there is no data to send, send() sends a single nil. + If no data is provided after the key, send() raises an error. If provided with linda.null or lanes.null before the actual key and there is no data to send, send() sends a single nil.
- Also, if linda.null is sent as data in a linda, it will be read as a nil. + Also, if linda.null or lanes.null is sent as data in a linda, it will be read as a nil.

@@ -1391,7 +1391,7 @@ events to a common Linda, but... :).

A very simple way of sleeping when nothing else is available. Is implemented by attempting to read some data in an unused channel of the internal linda used for timers (this linda exists even when timers aren't enabled). - Default duration is null, which should only cause a thread context switch. + Default duration is 0, which should only cause a thread context switch.

@@ -1517,7 +1517,7 @@ events to a common Linda, but... :).
 

- This has the main drawback of not being LuaJIT-compatible, because some functions registered by LuaJIT are not regular C functions, but specially optimized implementations. As a result, lua_tocfunction() returns NULL for them. + This has the main drawback of not being LuaJIT-compatible, because some functions registered by LuaJIT are not regular C functions, but specially optimized implementations. As a result, lua_tocfunction() returns nullptr for them.
Therefore, Lanes no longer transfers functions that way. Instead, functions are transfered as follows (more or less):

-- cgit v1.2.3-55-g6feb