From 1bff784b474261212a996ac9fc59389d53a69590 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 15 Apr 2025 18:21:41 +0200 Subject: Linda batched mode rework * linda.batched special value is removed * new function linda:receive_batched --- docs/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 8826b57..4dd5848 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1107,7 +1107,7 @@ b = f() c = f() - sync_linda:receive(nil, sync_linda.batched, "done", 3) -- wait for 3 lanes to write something in "done" slot of sync_linda + sync_linda:receive_batched(nil, "done", 3) -- wait for 3 lanes to write something in "done" slot of sync_linda @@ -1260,7 +1260,7 @@
  • Two producer-side methods: :send and :set (not out).
  • send allows for sending multiple values -atomically- to a given slot.
  • receive can wait for multiple slots at once.
  • -
  • receive has a batched mode to consume more than one value from a single slot, as in linda:receive(1.0, linda.batched, "slot", 3, 6).
  • +
  • receive_batched can be used to consume more than one value from a single slot, as in linda:receive_batched(1.0, "slot", 3, 6).
  • restrict can restrain a particular slot to function either with send/receive or set/get.
  • Individual slots' queue length can be limited, balancing speed differences in a producer/consumer scenario (making :send wait).
  • tostring(linda) returns a string of the form "Linda: <opt_name>"
  • @@ -1349,12 +1349,12 @@
     	slot, val = h:receive([timeout_secs,] slot [, slot...])
     
    -	slot, val [, val...] = h:receive([timeout,] h.batched, slot, n_uint_min[, n_uint_max])
    +	slot, val [, val...] = h:receive_batched([timeout,] slot, n_uint_min[, n_uint_max])
     

    - receive() raises an error if called when a restriction forbids its use on any provided slot.
    - In batched mode, receive() will raise an error if min_count < 1 or max_count < min_count. + receive() and receive_batched() raise an error if called when a restriction forbids their use on any provided slot.
    + receive_batched() will raise an error if min_count < 1 or max_count < min_count.

    -- cgit v1.2.3-55-g6feb