Function arceos_api::task::ax_wait_queue_wait
source · pub fn ax_wait_queue_wait(
wq: &AxWaitQueueHandle,
timeout: Option<Duration>
) -> bool
Available on crate feature
multitask
only.Expand description
Blocks the current task and put it into the wait queue, until other tasks notify the wait queue, or the the given duration has elapsed (if specified).