Lines Matching +full:dead +full:- +full:time
4 * SPDX-License-Identifier: Apache-2.0
31 /* context switching and scheduling-related routines */
37 * time.
39 * This exists to treat an unavoidable SMP race when threads swap --
50 * switched-to thread, which is going to (obviously) be running its
56 volatile void **shp = (void *)&thread->switch_handle; in z_sched_switch_spin()
63 * non-null. in z_sched_switch_spin()
72 * don't want to have to do in per-architecture assembly.
74 * Note that is_spinlock is a compile-time construct which will be
90 * a dead current thread that was just aborted (where the in do_swap()
99 arch_current_thread()->base.thread_state & (_THREAD_DUMMY | _THREAD_DEAD), in do_swap()
108 old_thread->swap_retval = -EAGAIN; in do_swap()
127 _current_cpu->swap_ok = 0; in do_swap()
128 new_thread->base.cpu = arch_curr_cpu()->id; in do_swap()
151 * time. See z_sched_switch_spin(). in do_swap()
155 void *newsh = new_thread->switch_handle; in do_swap()
162 new_thread->switch_handle = NULL; in do_swap()
166 arch_switch(newsh, &old_thread->switch_handle); in do_swap()
177 return arch_current_thread()->swap_retval; in do_swap()
240 dummy_thread->base.thread_state = _THREAD_DUMMY; in z_dummy_thread_init()
242 dummy_thread->base.cpu_mask = -1; in z_dummy_thread_init()
244 dummy_thread->base.user_options = K_ESSENTIAL; in z_dummy_thread_init()
246 dummy_thread->stack_info.start = 0U; in z_dummy_thread_init()
247 dummy_thread->stack_info.size = 0U; in z_dummy_thread_init()
250 dummy_thread->mem_domain_info.mem_domain = &k_mem_domain_default; in z_dummy_thread_init()
255 dummy_thread->resource_pool = NULL; in z_dummy_thread_init()
259 dummy_thread->base.slice_ticks = 0; in z_dummy_thread_init()