int _thread_create(void **handle, const char *name, _thread_function func, void *arg) { int ret; THREAD_EX_ARGS *ex; thread_ex_create(&ex); ex->stack = 32768; ret = thread_create_ex(handle, func, arg, ex); thread_ex_delete(ex); return ret; }
static int thr_create(void *stk, size_t stksize, kthread_proc_t func, void *arg, long flags, thread_t *new_thread) { (void)stk; (void)stksize; (void)flags; *new_thread = thread_create_ex(func, arg, NULL); return 0; }