Lines Matching refs:th_args
228 thread_entry_args_t *th_args; in mod_thread_start_new_thread() local
238 th_args = m_new_obj_var(thread_entry_args_t, mp_obj_t, pos_args_len); in mod_thread_start_new_thread()
239 th_args->n_kw = 0; in mod_thread_start_new_thread()
246 th_args = m_new_obj_var(thread_entry_args_t, mp_obj_t, pos_args_len + 2 * map->used); in mod_thread_start_new_thread()
247 th_args->n_kw = map->used; in mod_thread_start_new_thread()
251 th_args->args[n++] = map->table[i].key; in mod_thread_start_new_thread()
252 th_args->args[n++] = map->table[i].value; in mod_thread_start_new_thread()
258 th_args->n_args = pos_args_len; in mod_thread_start_new_thread()
259 memcpy(th_args->args, pos_args_items, pos_args_len * sizeof(mp_obj_t)); in mod_thread_start_new_thread()
262 th_args->dict_locals = mp_locals_get(); in mod_thread_start_new_thread()
263 th_args->dict_globals = mp_globals_get(); in mod_thread_start_new_thread()
266 th_args->stack_size = thread_stack_size; in mod_thread_start_new_thread()
269 th_args->fun = args[0]; in mod_thread_start_new_thread()
272 mp_thread_create(thread_entry, th_args, &th_args->stack_size); in mod_thread_start_new_thread()