diff options
| author | ame <[email protected]> | 2025-11-04 01:47:09 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2025-11-04 01:47:32 -0600 |
| commit | 5d88c4a2b80060290467d84033082f3af0c333b2 (patch) | |
| tree | 62d51c8510748187324f1a65742f5d7a2c0a4214 /src/thread.h | |
| parent | c4f000153d2988e2011d68c1eb45a6a9b1927487 (diff) | |
thread testcancel and usleep
Diffstat (limited to 'src/thread.h')
| -rw-r--r-- | src/thread.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/thread.h b/src/thread.h index f0435eb..8061971 100644 --- a/src/thread.h +++ b/src/thread.h @@ -1,14 +1,11 @@ #include "lua.h"
#include "config.h"
-#ifndef __ANDROID__
-#define SUPPORTS_PTHREAD_CANCEL
-#endif
-
int l_async(lua_State*);
int l_buffer(lua_State*);
int l_testcopy(lua_State*);
int l_mutex(lua_State*);
+int l_usleep(lua_State*);
void lib_thread_clean();
@@ -19,6 +16,7 @@ static const luaL_Reg thread_function_list [] = { {"buffer",l_buffer},
{"testcopy",l_testcopy},
{"mutex", l_mutex},
+ {"usleep", l_usleep},
{NULL,NULL}
};
|
