Home
last modified time | relevance | path

Searched refs:pending_thread (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/kernel/
Dmsg_q.c128 struct k_thread *pending_thread; in z_impl_k_msgq_put() local
138 pending_thread = z_unpend_first_thread(&msgq->wait_q); in z_impl_k_msgq_put()
139 if (unlikely(pending_thread != NULL)) { in z_impl_k_msgq_put()
143 (void)memcpy(pending_thread->base.swap_data, data, in z_impl_k_msgq_put()
146 arch_thread_return_value_set(pending_thread, 0); in z_impl_k_msgq_put()
147 z_ready_thread(pending_thread); in z_impl_k_msgq_put()
221 struct k_thread *pending_thread; in z_impl_k_msgq_get() local
238 pending_thread = z_unpend_first_thread(&msgq->wait_q); in z_impl_k_msgq_get()
239 if (unlikely(pending_thread != NULL)) { in z_impl_k_msgq_get()
245 (void)memcpy(msgq->write_ptr, (char *)pending_thread->base.swap_data, in z_impl_k_msgq_get()
[all …]
Dcondvar.c78 struct k_thread *pending_thread; in z_impl_k_condvar_broadcast() local
87 for (pending_thread = z_unpend_first_thread(&condvar->wait_q); pending_thread != NULL; in z_impl_k_condvar_broadcast()
88 pending_thread = z_unpend_first_thread(&condvar->wait_q)) { in z_impl_k_condvar_broadcast()
90 arch_thread_return_value_set(pending_thread, 0); in z_impl_k_condvar_broadcast()
91 z_ready_thread(pending_thread); in z_impl_k_condvar_broadcast()
Dmem_slab.c282 struct k_thread *pending_thread = z_unpend_first_thread(&slab->wait_q); in k_mem_slab_free() local
284 if (unlikely(pending_thread != NULL)) { in k_mem_slab_free()
287 z_thread_return_value_set_with_data(pending_thread, 0, mem); in k_mem_slab_free()
288 z_ready_thread(pending_thread); in k_mem_slab_free()
Dtimer.c209 struct k_thread *pending_thread = z_unpend1_no_timeout(&timer->wait_q); in z_impl_k_timer_stop() local
211 if (pending_thread != NULL) { in z_impl_k_timer_stop()
212 z_ready_thread(pending_thread); in z_impl_k_timer_stop()