diff options
| author | ruki <[email protected]> | 2025-04-16 22:41:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-28 11:35:53 +0800 |
| commit | 28e35d67e2cf08069c971c2235845389143b5f0e (patch) | |
| tree | 79b494583b542484b2dc4753126e8954a93bd5e1 /core/src/xmake/engine.c | |
| parent | 8bf1576c641f3b68bb43c50929cdcec8ee73ff86 (diff) | |
bind native thread apis
Diffstat (limited to 'core/src/xmake/engine.c')
| -rw-r--r-- | core/src/xmake/engine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index fa3462c7d..435e9fb5b 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -332,6 +332,7 @@ tb_int_t xm_lua_curses_register(lua_State* lua, tb_char_t const* module); // the thread functions tb_int_t xm_thread_init(lua_State* lua); tb_int_t xm_thread_exit(lua_State* lua); +tb_int_t xm_thread_wait(lua_State* lua); tb_int_t xm_thread_suspend(lua_State* lua); tb_int_t xm_thread_resume(lua_State* lua); @@ -626,6 +627,7 @@ static luaL_Reg const g_thread_functions[] = { { "thread_init", xm_thread_init } , { "thread_exit", xm_thread_exit } +, { "thread_wait", xm_thread_wait } , { "thread_resume", xm_thread_resume } , { "thread_suspend", xm_thread_suspend } , { tb_null, tb_null } |
