pub struct PiWaitToken { /* private fields */ }Expand description
Token joining one provider registration to the physical lock lifetime.
Implementations§
Source§impl PiWaitToken
impl PiWaitToken
Sourcepub fn initial_owner(&self) -> Option<PiTaskId>
pub fn initial_owner(&self) -> Option<PiTaskId>
Returns the owner observed by the registration transaction.
Sourcepub fn is_granted(&self) -> bool
pub fn is_granted(&self) -> bool
Returns whether scheduler handoff completed for this generation.
Sourcepub fn can_claim(&self) -> bool
pub fn can_claim(&self) -> bool
Returns whether this waiter is first and the mutex is ownerless.
Sourcepub fn is_top_waiter(&self) -> bool
pub fn is_top_waiter(&self) -> bool
Returns whether this waiter is currently first in the lock tree.
Sourcepub fn initial_owner_is_on_cpu(&self) -> bool
pub fn initial_owner_is_on_cpu(&self) -> bool
Returns whether the owner observed at registration still occupies a CPU.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PiWaitToken
impl !RefUnwindSafe for PiWaitToken
impl !Send for PiWaitToken
impl !Sync for PiWaitToken
impl !UnwindSafe for PiWaitToken
impl Unpin for PiWaitToken
impl UnsafeUnpin for PiWaitToken
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more