Lines Matching refs:args
64 STATIC mp_obj_t thread_lock_acquire(size_t n_args, const mp_obj_t *args) { in thread_lock_acquire() argument
65 mp_obj_thread_lock_t *self = MP_OBJ_TO_PTR(args[0]); in thread_lock_acquire()
68 wait = mp_obj_get_int(args[1]); in thread_lock_acquire()
104 STATIC mp_obj_t thread_lock___exit__(size_t n_args, const mp_obj_t *args) { in thread_lock___exit__() argument
106 return thread_lock_release(args[0]); in thread_lock___exit__()
136 STATIC mp_obj_t mod_thread_stack_size(size_t n_args, const mp_obj_t *args) { in mod_thread_stack_size() argument
141 thread_stack_size = mp_obj_get_int(args[0]); in mod_thread_stack_size()
154 mp_obj_t args[]; member
160 thread_entry_args_t *args = (thread_entry_args_t *)args_in; in thread_entry() local
166 mp_stack_set_limit(args->stack_size); in thread_entry()
181 mp_locals_set(args->dict_locals); in thread_entry()
182 mp_globals_set(args->dict_globals); in thread_entry()
192 DEBUG_printf("[thread] start ts=%p args=%p stack=%p\n", &ts, &args, MP_STATE_THREAD(stack_top)); in thread_entry()
196 mp_call_function_n_kw(args->fun, args->n_args, args->n_kw, args->args); in thread_entry()
207 mp_obj_print_helper(MICROPY_ERROR_PRINTER, args->fun, PRINT_REPR); in thread_entry()
223 STATIC mp_obj_t mod_thread_start_new_thread(size_t n_args, const mp_obj_t *args) { in mod_thread_start_new_thread() argument
233 mp_obj_get_array(args[1], &pos_args_len, &pos_args_items); in mod_thread_start_new_thread()
242 if (mp_obj_get_type(args[2]) != &mp_type_dict) { in mod_thread_start_new_thread()
245 mp_map_t *map = &((mp_obj_dict_t *)MP_OBJ_TO_PTR(args[2]))->map; 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()
259 memcpy(th_args->args, pos_args_items, pos_args_len * sizeof(mp_obj_t)); in mod_thread_start_new_thread()
269 th_args->fun = args[0]; in mod_thread_start_new_thread()