Lines Matching refs:condition
27 * @brief sleep until a condition gets true or a timeout elapses.
31 * @param condition Indicates a C expression for the event to wait for.
34 * 0 if the @condition evaluated to %false after the @timeout elapsed,
35 * 1 if the @condition evaluated to %true after the @timeout elapsed,
36 * or the remaining jiffies (at least 1) if the @condition evaluated
39 #define WaitEventTimeout(condition, timeout) \
42 while (--__ret && !(condition)) { \
45 if ((__ret == 0) && (condition)) \
51 * @brief sleep until a condition gets true.
55 * @param condition Indicates a C expression for the event to wait for.
58 #define WaitEvent(condition) \
60 while (!(condition)) { \