Lines Matching full:level
13 /* Current water level. */
14 unsigned int level; member
32 /** Increase the water level.
34 * It should be called in the thread that want to raise the water level. If the
35 * current level is above the high mark, the thread will be suspended up to
38 * @return RT_EOK if water level increased successfully. -RT_EFULL on @timeout
39 * is zero and the level is above water mark. -RT_ETIMEOUT if timeout occurred.
54 while (wg->level > wg->high_mark) in rt_wm_que_inc()
83 wg->level++; in rt_wm_que_inc()
85 if (wg->level == 0) in rt_wm_que_inc()
87 wg->level = ~0; in rt_wm_que_inc()
95 /** Decrease the water level.
98 * level reached low mark, all the thread suspended in this queue will be waken
106 if (wg->level == 0) in rt_wm_que_dec()
110 wg->level--; in rt_wm_que_dec()
111 if (wg->level == wg->low_mark) in rt_wm_que_dec()