aboutsummaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h21
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}
+};