diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-07-27 15:50:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-07-27 15:50:53 -0300 |
commit | 3d838f635cc81ec3332f9a904992db1c6d8a46ad (patch) | |
tree | fe2e9aa951d3e0dd464481697d4fb671bde70e65 /manual | |
parent | aa4c5cf190f77ab2730af5e21cfd2b830ff329df (diff) | |
download | lua-3d838f635cc81ec3332f9a904992db1c6d8a46ad.tar.gz lua-3d838f635cc81ec3332f9a904992db1c6d8a46ad.tar.bz2 lua-3d838f635cc81ec3332f9a904992db1c6d8a46ad.zip |
Added "emergency collection" to 'io.tmpfile' and 'os.tmpname'
These operations also can give errors for lack of resources, so they
also will try "emergency collections" in case of resource errors.
Because there are now two libraries with that kind of handling,
'resourcetryagain' was moved to the auxiliary library to be shared
by the libraries.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manual/manual.of b/manual/manual.of index 659daa55..5a8b1b2c 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -5538,6 +5538,20 @@ Leaves a copy of the module on the stack. | |||
5538 | 5538 | ||
5539 | } | 5539 | } |
5540 | 5540 | ||
5541 | @APIEntry{int luaL_resourcetryagain (lua_State *L);| | ||
5542 | @apii{0,0,m} | ||
5543 | |||
5544 | Try to release resources in case of errors. | ||
5545 | This function uses @id{errno} to check whether the last error was | ||
5546 | related to lack of resources (e.g., not enough memory or too many | ||
5547 | open files). | ||
5548 | If so, the function performs a full garbage collection | ||
5549 | to try to release resources, and then it returns 1 to signal to | ||
5550 | the caller that it is worth trying again the failed operation. | ||
5551 | Otherwise, it returns 0. | ||
5552 | |||
5553 | } | ||
5554 | |||
5541 | @APIEntry{void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);| | 5555 | @APIEntry{void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);| |
5542 | @apii{nup,0,m} | 5556 | @apii{nup,0,m} |
5543 | 5557 | ||