Searched refs:pending_thread (Results 1 – 4 of 4) sorted by relevance
132 struct k_thread *pending_thread; in z_impl_k_msgq_put() local143 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() local243 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 …]
78 struct k_thread *pending_thread; in z_impl_k_condvar_broadcast() local87 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()
282 struct k_thread *pending_thread = z_unpend_first_thread(&slab->wait_q); in k_mem_slab_free() local284 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()
214 struct k_thread *pending_thread = z_unpend1_no_timeout(&timer->wait_q); in z_impl_k_timer_stop() local216 if (pending_thread != NULL) { in z_impl_k_timer_stop()217 z_ready_thread(pending_thread); in z_impl_k_timer_stop()