From ffaee8f1a04b5c3616f27118b426ce727294868c Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 9 Feb 2006 16:59:55 +0000 Subject: Adding thread creation/destruction hooks. --- lib/lua/include/lua.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/lua/include') diff --git a/lib/lua/include/lua.h b/lib/lua/include/lua.h index 10496ec..9a28d9e 100644 --- a/lib/lua/include/lua.h +++ b/lib/lua/include/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.8 2004-12-27 22:18:52 pixel Exp $ +** $Id: lua.h,v 1.9 2006-02-09 16:59:55 pixel Exp $ ** Lua - An Extensible Extension Language ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil ** http://www.lua.org mailto:info@lua.org @@ -336,6 +336,7 @@ typedef struct lua_Debug lua_Debug; /* activation record */ typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); typedef int (*lua_CallWrap) (lua_State *L, lua_CFunction func); +typedef void (*lua_ThreadHook) (lua_State *L, lua_State *L1); LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar); @@ -351,6 +352,8 @@ LUA_API int lua_gethookmask (lua_State *L); LUA_API int lua_gethookcount (lua_State *L); LUA_API lua_CallWrap lua_setcallwrap (lua_State *L, lua_CallWrap func); +LUA_API lua_ThreadHook lua_setcreatehook (lua_State *L, lua_ThreadHook func); +LUA_API lua_ThreadHook lua_setdestroyhook (lua_State *L, lua_ThreadHook func); #define LUA_IDSIZE 60 -- cgit v1.2.3