This function add a task to WaitQueue but won’t block it,
if you want to block a task, use block_current_and_run_next()
.
This funtion will wake up all tasks in inner Vec and change their task_status
to Ready
, so it will try to acquire inner lock and dead lock could happen.
These tasks will be scheduled if everything goes well.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.