Lines Matching full:thread
13 * Remove a thread from the kernel's list of active threads.
15 void z_thread_monitor_exit(struct k_thread *thread) in z_thread_monitor_exit() argument
19 if (thread == _kernel.threads) { in z_thread_monitor_exit()
26 (thread != prev_thread->next_thread)) { in z_thread_monitor_exit()
30 prev_thread->next_thread = thread->next_thread; in z_thread_monitor_exit()
40 struct k_thread *thread; in k_thread_foreach() local
55 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in k_thread_foreach()
56 user_cb(thread, user_data); in k_thread_foreach()
66 struct k_thread *thread; in k_thread_foreach_unlocked() local
75 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in k_thread_foreach_unlocked()
77 user_cb(thread, user_data); in k_thread_foreach_unlocked()
91 struct k_thread *thread; in k_thread_foreach_filter_by_cpu() local
107 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in k_thread_foreach_filter_by_cpu()
108 if (thread->base.cpu == cpu) in k_thread_foreach_filter_by_cpu()
109 user_cb(thread, user_data); in k_thread_foreach_filter_by_cpu()
120 struct k_thread *thread; in k_thread_foreach_unlocked_filter_by_cpu() local
130 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in k_thread_foreach_unlocked_filter_by_cpu()
131 if (thread->base.cpu == cpu) { in k_thread_foreach_unlocked_filter_by_cpu()
133 user_cb(thread, user_data); in k_thread_foreach_unlocked_filter_by_cpu()