Searched refs:pending_thread (Results 1 – 4 of 4) sorted by relevance
128 struct k_thread *pending_thread; in z_impl_k_msgq_put() local138 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() local238 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 …]
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()
209 struct k_thread *pending_thread = z_unpend1_no_timeout(&timer->wait_q); in z_impl_k_timer_stop() local211 if (pending_thread != NULL) { in z_impl_k_timer_stop()212 z_ready_thread(pending_thread); in z_impl_k_timer_stop()