rust: sync: Add SpinLockGuard type alias

A simple helper alias for code that needs to deal with Guard types returned
from SpinLocks.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20241120222742.2490495-3-lyude@redhat.com
This commit is contained in:
Lyude Paul 2024-11-20 17:26:29 -05:00 • committed by Boqun Feng
commit eb5ccb0382
2 changed files with 9 additions and 1 deletions