pub struct SpinLockBackend;
Expand description
A kernel spinlock_t
lock backend.
Trait Implementations§
source§impl Backend for SpinLockBackend
impl Backend for SpinLockBackend
§type GuardState = ()
type GuardState = ()
The state required to be kept between lock and unlock.
source§unsafe fn init(
ptr: *mut Self::State,
name: *const c_char,
key: *mut lock_class_key
)
unsafe fn init( ptr: *mut Self::State, name: *const c_char, key: *mut lock_class_key )
Initialises the lock. Read more
source§unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState
unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState
Acquires the lock, making the caller its owner. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SpinLockBackend
impl Send for SpinLockBackend
impl Sync for SpinLockBackend
impl Unpin for SpinLockBackend
impl UnwindSafe for SpinLockBackend
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