Lines Matching +full:wake +full:- +full:up
2 * Copyright (c) 2016-2017 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
37 #define Z_VALID_PRIO(prio, entry_point) ((prio) == -1)
38 #define Z_ASSERT_VALID_PRIO(prio, entry_point) __ASSERT((prio) == -1, "")
146 __ASSERT(arch_current_thread()->base.sched_locked != 1U, ""); in z_sched_lock()
148 --arch_current_thread()->base.sched_locked; in z_sched_lock()
155 __ASSERT_NO_MSG(thread->base.pended_on); in pended_on_thread()
157 return thread->base.pended_on; in pended_on_thread()
163 _priq_wait_remove(&pended_on_thread(thread)->waitq, thread); in unpend_thread_no_timeout()
165 thread->base.pended_on = NULL; in unpend_thread_no_timeout()
182 thread = _priq_wait_best(&wait_q->waitq); in z_unpend_first_thread()
195 * implemented by OS compatibility layers, providing basic wait/wake operations
203 * Wake up a thread pending on the provided wait queue
205 * Given a wait_q, wake up the highest priority thread on the queue. If the
210 * - Set the thread's swap return values to swap_retval and swap_data
211 * - un-pend and ready the thread, but do not invoke the scheduler.
214 * way to wake all threads on the queue.
216 * It is up to the caller to implement locking such that the return value of
217 * this function (whether a thread was woken up or not) does not immediately
218 * become stale. Calls to wait and wake on the same wait_q object must have
222 * @param wait_q Wait queue to wake up the highest prio thread
225 * @retval true If a thread was woken up
233 * Given a specific thread, wake it up. This routine assumes that the given
236 * @param thread Given thread to wake up.
243 * Wake up all threads pending on the provided wait queue
246 * until there are no more to wake up.
248 * @param wait_q Wait queue to wake up the highest prio thread
251 * @retval true If any threads were woken up
263 /* True if we woke at least one thread up */ in z_sched_wake_all()
274 * The return value and data pointer is set by whoever woke us up via
280 * @param timeout Waiting period to be woken up, or K_FOREVER to wait
282 * @param data Storage location for data pointer set when thread was woken up.
284 * @retval Return value set by whatever woke us up, or -EAGAIN if the timeout
285 * expired without being woken up.
306 * @retval non-zero if walk is terminated by the callback; otherwise 0
319 * any cycles spent in the ISR in the per-thread accounting. But