pub struct FastMutex<T> { /* private fields */ }Expand description
fast mutex protecting data T (APC level, can’t be used at DISPATCH_LEVEL)
Implementations§
Source§impl<T> FastMutex<T>
impl<T> FastMutex<T>
Sourcepub fn lock(&self) -> FastMutexGuard<'_, T>
pub fn lock(&self) -> FastMutexGuard<'_, T>
acquire mutex (raises IRQL to APC_LEVEL)
Sourcepub fn try_lock(&self) -> Option<FastMutexGuard<'_, T>>
pub fn try_lock(&self) -> Option<FastMutexGuard<'_, T>>
try to acquire mutex without blocking
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for FastMutex<T>
impl<T> !RefUnwindSafe for FastMutex<T>
impl<T> Unpin for FastMutex<T>where
T: Unpin,
impl<T> UnwindSafe for FastMutex<T>where
T: UnwindSafe,
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