diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
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 @@ | |||
1107 | b = f() | 1107 | b = f() |
1108 | c = f() | 1108 | c = f() |
1109 | 1109 | ||
1110 | sync_linda:receive(nil, sync_linda.batched, "done", 3) -- wait for 3 lanes to write something in "done" slot of sync_linda | 1110 | sync_linda:receive_batched(nil, "done", 3) -- wait for 3 lanes to write something in "done" slot of sync_linda |
1111 | </pre></td></tr></table> | 1111 | </pre></td></tr></table> |
1112 | 1112 | ||
1113 | <!-- cancelling +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 1113 | <!-- cancelling +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
@@ -1260,7 +1260,7 @@ | |||
1260 | <li>Two producer-side methods: <tt>:send</tt> and <tt>:set</tt> (not out).</li> | 1260 | <li>Two producer-side methods: <tt>:send</tt> and <tt>:set</tt> (not out).</li> |
1261 | <li><tt>send</tt> allows for sending multiple values -atomically- to a given slot.</li> | 1261 | <li><tt>send</tt> allows for sending multiple values -atomically- to a given slot.</li> |
1262 | <li><tt>receive</tt> can wait for multiple slots at once.</li> | 1262 | <li><tt>receive</tt> can wait for multiple slots at once.</li> |
1263 | <li><tt>receive</tt> has a batched mode to consume more than one value from a single slot, as in <tt>linda:receive(1.0, linda.batched, "slot", 3, 6).</tt></li> | 1263 | <li><tt>receive_batched</tt> can be used to consume more than one value from a single slot, as in <tt>linda:receive_batched(1.0, "slot", 3, 6).</tt></li> |
1264 | <li><tt>restrict</tt> can restrain a particular slot to function either with <tt>send/receive</tt> or <tt>set/get</tt>.</li> | 1264 | <li><tt>restrict</tt> can restrain a particular slot to function either with <tt>send/receive</tt> or <tt>set/get</tt>.</li> |
1265 | <li>Individual slots' queue length can be limited, balancing speed differences in a producer/consumer scenario (making <tt>:send</tt> wait).</li> | 1265 | <li>Individual slots' queue length can be limited, balancing speed differences in a producer/consumer scenario (making <tt>:send</tt> wait).</li> |
1266 | <li><tt>tostring(linda)</tt> returns a string of the form <tt>"Linda: <opt_name>"</tt></li> | 1266 | <li><tt>tostring(linda)</tt> returns a string of the form <tt>"Linda: <opt_name>"</tt></li> |
@@ -1349,12 +1349,12 @@ | |||
1349 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> | 1349 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> |
1350 | slot, val = h:receive([timeout_secs,] slot [, slot...]) | 1350 | slot, val = h:receive([timeout_secs,] slot [, slot...]) |
1351 | 1351 | ||
1352 | slot, val [, val...] = h:receive([timeout,] h.batched, slot, n_uint_min[, n_uint_max]) | 1352 | slot, val [, val...] = h:receive_batched([timeout,] slot, n_uint_min[, n_uint_max]) |
1353 | </pre></td></tr></table> | 1353 | </pre></td></tr></table> |
1354 | 1354 | ||
1355 | <p> | 1355 | <p> |
1356 | <tt>receive()</tt> raises an error if called when a restriction forbids its use on any provided slot.<br /> | 1356 | <tt>receive()</tt> and <tt>receive_batched()</tt> raise an error if called when a restriction forbids their use on any provided slot.<br /> |
1357 | In batched mode, <tt>receive()</tt> will raise an error if <tt>min_count < 1</tt> or <tt>max_count < min_count</tt>. | 1357 | <tt>receive_batched()</tt> will raise an error if <tt>min_count < 1</tt> or <tt>max_count < min_count</tt>. |
1358 | </p> | 1358 | </p> |
1359 | 1359 | ||
1360 | <p> | 1360 | <p> |