--- a/src/lua_thread.h Thu May 21 16:55:56 2009 +0300
+++ b/src/lua_thread.h Thu May 21 16:56:42 2009 +0300
@@ -62,9 +62,24 @@
int lua_thread_start (struct lua_thread *thread, const char *chunk, error_t *err);
/**
- * Protected-mode function to resume execution of the given lua_State, which must be a lua_State created with
+ * Protected-mode function to yield execution of the given lua_State, which must be a luaState created with
* lua_thread_start.
+ *
+ * This should be called the same way as lua_yield, except no results are supported yet.
+ */
+int lua_thread_yield_state (lua_State *L);
+
+/**
+ * Resume execution of the given lua_State, which must be a lua_State created with lua_thread_start.
*/
void lua_thread_resume_state (lua_State *L);
+/**
+ * Abort execution of the given thread, if it's running.
+ *
+ * Currently, there is no mechanism to actually abort a running thread, so this will instead release the lua_thread for
+ * new use, and then cause the lua_thread_resume to do nothing.
+ */
+void lua_thread_abort (struct lua_thread *thread);
+
#endif