1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pub(crate) mod interrupt;
pub(crate) mod spin;
pub(crate) mod ticket;
use lock_api::{Mutex, MutexGuard};
use interrupt::RawInterruptMutex;
use spin::RawSpinMutex;
use ticket::RawTicketMutex;
pub type RawInterruptSpinMutex = RawInterruptMutex<RawSpinMutex>;
pub type InterruptSpinMutex<T> = Mutex<RawInterruptSpinMutex, T>;
pub type InterruptSpinMutexGuard<'a, T> = MutexGuard<'a, RawInterruptSpinMutex, T>;
pub type RawInterruptTicketMutex = RawInterruptMutex<RawTicketMutex>;
pub type InterruptTicketMutex<T> = Mutex<RawInterruptTicketMutex, T>;
pub type InterruptTicketMutexGuard<'a, T> = MutexGuard<'a, RawInterruptTicketMutex, T>;