mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
New functions 'lua_resetthread' and 'coroutine.kill'
New functions to reset/kill a thread/coroutine, mainly (only?) to
close any pending to-be-closed variable. ('lua_resetthread' also
allows a thread to be reused...)
This commit is contained in:
parent
3b06f983ae
commit
fdc25a1ebf
11 changed files with 195 additions and 32 deletions
1
lua.h
1
lua.h
|
|
@ -147,6 +147,7 @@ extern const char lua_ident[];
|
|||
LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
|
||||
LUA_API void (lua_close) (lua_State *L);
|
||||
LUA_API lua_State *(lua_newthread) (lua_State *L);
|
||||
LUA_API int (lua_resetthread) (lua_State *L);
|
||||
|
||||
LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue