diff options
| author | ame <[email protected]> | 2024-05-08 10:55:05 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-05-08 10:55:05 -0500 |
| commit | c562d0f9e336251f9ff599a840310835820b0461 (patch) | |
| tree | fe96557b26207bb35b9330d2886eb7ee30f82bfb /src/thread.h | |
| parent | 4b7969b0bcce51bf86a63760950fbef002ecc872 (diff) | |
work on threads
Diffstat (limited to 'src/thread.h')
| -rw-r--r-- | src/thread.h | 21 |
1 files changed, 12 insertions, 9 deletions
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}
+};
|
