Skip to content
Snippets Groups Projects
Commit 741d7342 authored by Lyude Paul's avatar Lyude Paul Committed by Daniel Almeida
Browse files

rust: sync: Add SpinLockIrq


A variant of SpinLock that is expected to be used in noirq contexts, so
lock() will disable interrupts and unlock() (i.e. `Guard::drop()` will
undo the interrupt disable.

[Boqun: Port to use spin_lock_irq_disable() and
spin_unlock_irq_enable()]

Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
Co-Developed-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
parent 70d20042
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment