From 2fc6b55dae7a120b4272ca0e9c356d1f96053bd9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 31 Oct 2018 16:25:29 -0300 Subject: Removed resource-related "emergency collections" New to-be-closed variables is a better way to ensure the proper release of resources. --- manual/manual.of | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'manual/manual.of') 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. } -@APIEntry{int luaL_resourcetryagain (lua_State *L);| -@apii{0,0,m} - -Try to release resources in case of errors. -This function uses @id{errno} to check whether the last error was -related to lack of resources (e.g., not enough memory or too many -open files). -If so, the function performs a full garbage collection -to try to release resources, and then it returns 1 to signal to -the caller that it is worth trying again the failed operation. -Otherwise, it returns 0. - -} - @APIEntry{void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);| @apii{nup,0,m} -- cgit v1.2.3-55-g6feb