Skip to main content

SpinLockGuard

Type Alias SpinLockGuard 

Source
pub type SpinLockGuard<'a, T> = BaseSpinLockGuard<'a, PreemptState, T>;
Expand description

A guard returned by SpinLock::lock.

fn require_send<T: Send>() {}
require_send::<ax_task::sync::SpinLockGuard<'static, ()>>();

Aliased Type§

pub struct SpinLockGuard<'a, T> { /* private fields */ }