Struct itron_solid_asp3::task::TaskRef [−][src]
pub struct TaskRef<'a> { /* fields omitted */ }
unstable
only.Expand description
A borrowed reference to a task.
Implementations
Get the raw object ID as abi::NonNullID
.
act_tsk
: Pend an activation request for the task.
mact_tsk
: Pend an activation request for the task, assigning it to
the specified processor.
can_act
: Cancel any pending activation requests for the task.
Returns the number of cancelled requests.
pub fn set_base_priority(
self,
new_priority: Priority
) -> Result<(), Error<SetBasePriorityError>>
pub fn set_base_priority(
self,
new_priority: Priority
) -> Result<(), Error<SetBasePriorityError>>
chg_pri
: Change the task’s base priority.
get_pri
: Get the task’s priority.
Use TaskRef::info
and Info::base_priority
to get the base
priority.
mig_tsk
: Change the task’s assigned processor.
This is supported on crate feature dcre
only.
dcre
only.wup_tsk
: Pend a wake up request for the task.
This method and the sleep
function are semantically analogous to
std::thread::Thread::unpark
and std::thread::park
, respectively.
However, unlike unpark
, this method will return
Err(WakeError::QueueOverflow)
if the token is already present.
can_wup
: Cancel any wake up requests for the task.
Returns the number of cancelled requests.
rel_wai
: Forcibly release the task from waiting.