Function arceos_api::task::ax_wait_queue_wait

source ·
pub fn ax_wait_queue_wait(
    wq: &AxWaitQueueHandle,
    until_condition: impl Fn() -> bool,
    timeout: Option<Duration>
) -> bool
Available on crate feature multitask only.
Expand description

Blocks the current task and put it into the wait queue, until the given condition becomes true, or the the given duration has elapsed (if specified).