diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-20 15:49:28 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-20 15:49:28 +0200 |
| commit | 9a0781e52fd0f9eac8ac75c18d7f58936fb6c981 (patch) | |
| tree | b0766998fe71a89e4f968dac1e669684d7cb7d88 /docs | |
| parent | 5e5f08558010890206e1d2d11045870c35eb23cf (diff) | |
| download | lanes-9a0781e52fd0f9eac8ac75c18d7f58936fb6c981.tar.gz lanes-9a0781e52fd0f9eac8ac75c18d7f58936fb6c981.tar.bz2 lanes-9a0781e52fd0f9eac8ac75c18d7f58936fb6c981.zip | |
linda:limit uses nil instead of -1 to unblock
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/index.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/index.html b/docs/index.html index c9c070c..d0b06ae 100644 --- a/docs/index.html +++ b/docs/index.html | |||
| @@ -1192,10 +1192,8 @@ | |||
| 1192 | 1192 | ||
| 1193 | <p> | 1193 | <p> |
| 1194 | The <tt>send()</tt> and <tt>receive()</tt> methods use Linda keys as FIFO stacks (first in, first out).<br/> | 1194 | The <tt>send()</tt> and <tt>receive()</tt> methods use Linda keys as FIFO stacks (first in, first out).<br/> |
| 1195 | By default, stack sizes are unlimited but limits can be enforced using the <tt>limit()</tt> method. This can be useful to balance execution speeds in a producer/consumer scenario. Any negative value removes the limit. | 1195 | By default, stack sizes are unlimited but limits can be enforced using the <tt>limit()</tt> method. This can be useful to balance execution speeds in a producer/consumer scenario. <tt>nil</tt> removes the limit.<br/> |
| 1196 | <br/> | 1196 | A limit of 0 is allowed to block everything.<br/> |
| 1197 | A limit of 0 is allowed to block everything. | ||
| 1198 | <br/> | ||
| 1199 | If the key was full but the limit change added some room, <tt>limit()</tt> returns <tt>true</tt> and the linda is signalled so that <tt>send()</tt>-blocked threads are awakened. | 1197 | If the key was full but the limit change added some room, <tt>limit()</tt> returns <tt>true</tt> and the linda is signalled so that <tt>send()</tt>-blocked threads are awakened. |
| 1200 | </p> | 1198 | </p> |
| 1201 | 1199 | ||
