diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-12-13 13:07:53 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-12-13 13:07:53 -0200 |
commit | fdc25a1ebfe9968dcec390dd556375105aa0be40 (patch) | |
tree | 43759131636a501ec92475d453fd1a1c73bc8090 /lua.h | |
parent | 3b06f983ae0e57b90cdeb500c84bb524e5c3635b (diff) | |
download | lua-fdc25a1ebfe9968dcec390dd556375105aa0be40.tar.gz lua-fdc25a1ebfe9968dcec390dd556375105aa0be40.tar.bz2 lua-fdc25a1ebfe9968dcec390dd556375105aa0be40.zip |
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...)
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -147,6 +147,7 @@ extern const char lua_ident[]; | |||
147 | LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); | 147 | LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); |
148 | LUA_API void (lua_close) (lua_State *L); | 148 | LUA_API void (lua_close) (lua_State *L); |
149 | LUA_API lua_State *(lua_newthread) (lua_State *L); | 149 | LUA_API lua_State *(lua_newthread) (lua_State *L); |
150 | LUA_API int (lua_resetthread) (lua_State *L); | ||
150 | 151 | ||
151 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); | 152 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); |
152 | 153 | ||