diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-10 17:07:09 +0100 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-10 17:07:09 +0100 |
| commit | 18c708eb8fbe995efe4b06b93421db3d25e22636 (patch) | |
| tree | 860a74b3a914dfacc9c959374ad4415a7f54873b /docs | |
| parent | 5f9ef9e1b75adc27a4ae4129cc33137aa7aaa565 (diff) | |
| download | lanes-18c708eb8fbe995efe4b06b93421db3d25e22636.tar.gz lanes-18c708eb8fbe995efe4b06b93421db3d25e22636.tar.bz2 lanes-18c708eb8fbe995efe4b06b93421db3d25e22636.zip | |
lanes.collectgarbage() and linda:collectgarbage()
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/index.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/index.html b/docs/index.html index 6757981..8bb181f 100644 --- a/docs/index.html +++ b/docs/index.html | |||
| @@ -453,6 +453,20 @@ | |||
| 453 | </tr> | 453 | </tr> |
| 454 | </table> | 454 | </table> |
| 455 | 455 | ||
| 456 | <p id="collectgarbage"> | ||
| 457 | A full GC cycle can be triggered on all keeper states with <tt>lanes.collectgarbage()</tt>. This can force the collection of stale storage data for a collected Linda. | ||
| 458 | </p> | ||
| 459 | |||
| 460 | <p> | ||
| 461 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"> | ||
| 462 | <tr> | ||
| 463 | <td> | ||
| 464 | <pre> lanes.collectgarbage()</pre> | ||
| 465 | </td> | ||
| 466 | </tr> | ||
| 467 | </table> | ||
| 468 | </p> | ||
| 469 | |||
| 456 | <p id="finally"> | 470 | <p id="finally"> |
| 457 | It is also possible to install a function that will be called when Lanes is shutdown (that is, when the first state that required Lanes is closed). | 471 | It is also possible to install a function that will be called when Lanes is shutdown (that is, when the first state that required Lanes is closed). |
| 458 | </p> | 472 | </p> |
| @@ -1395,6 +1409,15 @@ | |||
| 1395 | </p> | 1409 | </p> |
| 1396 | 1410 | ||
| 1397 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> | 1411 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> |
| 1412 | linda_h:collectgarbage() | ||
| 1413 | </pre></td></tr></table> | ||
| 1414 | |||
| 1415 | <p> | ||
| 1416 | Forces a full garbage collect cycle inside the Keeper state assigned to the Linda (same as <tt>lua_gc(L, LUA_GCCOLLECT)</tt>).<br /> | ||
| 1417 | Can be useful to clean stale storage after some keys are cleaned. | ||
| 1418 | </p> | ||
| 1419 | |||
| 1420 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> | ||
| 1398 | [val] = linda_h:count([slot[,...]]) | 1421 | [val] = linda_h:count([slot[,...]]) |
| 1399 | </pre></td></tr></table> | 1422 | </pre></td></tr></table> |
| 1400 | 1423 | ||
