Home
last modified time | relevance | path

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

/Zephyr-latest/kernel/
Dmsg_q.c132 struct k_thread *pending_thread; in z_impl_k_msgq_put() local
143 pending_thread = z_unpend_first_thread(&msgq->wait_q); in z_impl_k_msgq_put()
144 if (unlikely(pending_thread != NULL)) { in z_impl_k_msgq_put()
148 (void)memcpy(pending_thread->base.swap_data, data, msgq->msg_size); in z_impl_k_msgq_put()
150 arch_thread_return_value_set(pending_thread, 0); in z_impl_k_msgq_put()
151 z_ready_thread(pending_thread); in z_impl_k_msgq_put()
225 struct k_thread *pending_thread; in z_impl_k_msgq_get() local
243 pending_thread = z_unpend_first_thread(&msgq->wait_q); in z_impl_k_msgq_get()
244 if (unlikely(pending_thread != NULL)) { in z_impl_k_msgq_get()
250 (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.c214 struct k_thread *pending_thread = z_unpend1_no_timeout(&timer->wait_q); in z_impl_k_timer_stop() local
216 if (pending_thread != NULL) { in z_impl_k_timer_stop()
217 z_ready_thread(pending_thread); in z_impl_k_timer_stop()