Searched refs:first_pending_thread (Results 1 – 2 of 2) sorted by relevance
103 struct k_thread *first_pending_thread; in z_impl_k_stack_push() local114 first_pending_thread = z_unpend_first_thread(&stack->wait_q); in z_impl_k_stack_push()116 if (unlikely(first_pending_thread != NULL)) { in z_impl_k_stack_push()117 z_thread_return_value_set_with_data(first_pending_thread, in z_impl_k_stack_push()120 z_ready_thread(first_pending_thread); in z_impl_k_stack_push()
102 struct k_thread *first_pending_thread; in z_impl_k_queue_cancel_wait() local104 first_pending_thread = z_unpend_first_thread(&queue->wait_q); in z_impl_k_queue_cancel_wait()106 if (first_pending_thread != NULL) { in z_impl_k_queue_cancel_wait()107 prepare_thread_to_run(first_pending_thread, NULL); in z_impl_k_queue_cancel_wait()126 struct k_thread *first_pending_thread; in queue_insert() local134 first_pending_thread = z_unpend_first_thread(&queue->wait_q); in queue_insert()136 if (unlikely(first_pending_thread != NULL)) { in queue_insert()139 prepare_thread_to_run(first_pending_thread, data); in queue_insert()