1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "lua.h" int l_async(lua_State*); int l_tlock(lua_State*); int l_tunlock(lua_State*); void lib_thread_clean(); static const luaL_Reg thread_function_list [] = { {"async",l_async}, {"lock",l_tlock}, {"unlock",l_tunlock}, {NULL,NULL} };