diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-10-31 16:25:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-10-31 16:25:29 -0300 |
commit | 2fc6b55dae7a120b4272ca0e9c356d1f96053bd9 (patch) | |
tree | 073360734518f75a4f5621d87a4b47bc4642452a /manual | |
parent | 947a372f5860a76fcafb4a2845abc322e440d6fc (diff) | |
download | lua-2fc6b55dae7a120b4272ca0e9c356d1f96053bd9.tar.gz lua-2fc6b55dae7a120b4272ca0e9c356d1f96053bd9.tar.bz2 lua-2fc6b55dae7a120b4272ca0e9c356d1f96053bd9.zip |
Removed resource-related "emergency collections"
New to-be-closed variables is a better way to ensure the proper release
of resources.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/manual/manual.of b/manual/manual.of index d8bac5da..91ba8c46 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -5535,20 +5535,6 @@ Leaves a copy of the module on the stack. | |||
5535 | 5535 | ||
5536 | } | 5536 | } |
5537 | 5537 | ||
5538 | @APIEntry{int luaL_resourcetryagain (lua_State *L);| | ||
5539 | @apii{0,0,m} | ||
5540 | |||
5541 | Try to release resources in case of errors. | ||
5542 | This function uses @id{errno} to check whether the last error was | ||
5543 | related to lack of resources (e.g., not enough memory or too many | ||
5544 | open files). | ||
5545 | If so, the function performs a full garbage collection | ||
5546 | to try to release resources, and then it returns 1 to signal to | ||
5547 | the caller that it is worth trying again the failed operation. | ||
5548 | Otherwise, it returns 0. | ||
5549 | |||
5550 | } | ||
5551 | |||
5552 | @APIEntry{void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);| | 5538 | @APIEntry{void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);| |
5553 | @apii{nup,0,m} | 5539 | @apii{nup,0,m} |
5554 | 5540 | ||