From c562d0f9e336251f9ff599a840310835820b0461 Mon Sep 17 00:00:00 2001 From: ame Date: Wed, 8 May 2024 10:55:05 -0500 Subject: work on threads --- src/thread.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'src/thread.h') diff --git a/src/thread.h b/src/thread.h index d25b448..e9ead6d 100644 --- a/src/thread.h +++ b/src/thread.h @@ -1,9 +1,12 @@ -#include "lua.h" - -int l_async(lua_State*); - -static const luaL_Reg thread_function_list [] = { - {"async",l_async}, - - {NULL,NULL} -}; +#include "lua.h" + +int l_async(lua_State*); +int l_tlock(lua_State*); +int l_tunlock(lua_State*); + +static const luaL_Reg thread_function_list [] = { + {"async",l_async}, + {"lock",l_tlock}, + {"unlock",l_tunlock}, + {NULL,NULL} +}; -- cgit v1.2.3