public void StopGc() { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnvLock) { #endif LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSTOP, 0); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
public void RestartGc() { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnvLock) { #endif LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCRESTART, 0); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
public void FullGc() { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnvLock) { #endif LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCCOLLECT, 0); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
public bool GcStep(int data) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnvLock) { #endif return(LuaAPI.lua_gc(L, LuaGCOptions.LUA_GCSTEP, data) != 0); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }