pub struct RawSpinLockWithoutGuard {
locked: AtomicBool,
saved_intr_flags: AtomicUsize,
}Expand description
自旋锁结构体,不返回 Guard,集成了中断状态保存与恢复功能。
Fields§
§locked: AtomicBool§saved_intr_flags: AtomicUsizeImplementations§
Trait Implementations§
Source§impl RawMutex for RawSpinLockWithoutGuard
impl RawMutex for RawSpinLockWithoutGuard
Source§type GuardMarker = GuardNoSend
type GuardMarker = GuardNoSend
Marker type which determines whether a lock guard should be
Send. Use
one of the GuardSend or GuardNoSend helper types here.