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 | 34e6285c3d3bdb31eb476d13d4d083757a51bfe6 (patch) | |
| tree | fe96557b26207bb35b9330d2886eb7ee30f82bfb /src/thread.h | |
| parent | f98fbf1ab34a8ff17daa5d51cbbdb6185f8065f7 (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}
+};
|
