Home
last modified time | relevance | path

Searched refs:new_thread (Results 1 – 5 of 5) sorted by relevance

/kernel/
A Dthread.c527 &new_thread->base.usage, in z_setup_new_thread()
535 new_thread, stack); in z_setup_new_thread()
536 k_object_init(new_thread); in z_setup_new_thread()
538 new_thread->stack_obj = stack; in z_setup_new_thread()
542 k_object_access_grant(new_thread, new_thread); in z_setup_new_thread()
568 new_thread->init_data = NULL; in z_setup_new_thread()
580 new_thread->custom_data = NULL; in z_setup_new_thread()
594 _kernel.threads = new_thread; in z_setup_new_thread()
607 new_thread->name[0] = '\0'; in z_setup_new_thread()
667 return new_thread; in z_impl_k_thread_create()
[all …]
A Dsched.c741 struct k_thread *new_thread; in need_swap()
745 return new_thread != _current; in need_swap()
829 z_current_thread_set(new_thread); in set_current()
876 new_thread = next_up(); in z_get_next_switch_handle()
878 z_sched_usage_switch(new_thread); in z_get_next_switch_handle()
880 if (old_thread != new_thread) { in z_get_next_switch_handle()
884 z_sched_switch_spin(new_thread); in z_get_next_switch_handle()
889 new_thread->base.cpu = cpu_id; in z_get_next_switch_handle()
890 set_current(new_thread); in z_get_next_switch_handle()
893 z_reset_time_slice(new_thread); in z_get_next_switch_handle()
[all …]
/kernel/include/
A Dkswap.h81 struct k_thread *new_thread, *old_thread; in do_swap() local
121 new_thread = z_swap_next_thread(); in do_swap()
123 if (new_thread != old_thread) { in do_swap()
124 z_sched_usage_switch(new_thread); in do_swap()
127 new_thread->base.cpu = arch_curr_cpu()->id; in do_swap()
130 z_smp_release_global_lock(new_thread); in do_swap()
134 z_sched_switch_spin(new_thread); in do_swap()
135 z_current_thread_set(new_thread); in do_swap()
138 z_reset_time_slice(new_thread); in do_swap()
154 void *newsh = new_thread->switch_handle; in do_swap()
[all …]
A Dkernel_arch_interface.h694 size_t arch_tls_stack_setup(struct k_thread *new_thread, char *stack_ptr);
A Dkernel_internal.h73 extern char *z_setup_new_thread(struct k_thread *new_thread,

Completed in 20 milliseconds