pub(crate) struct RqMutex<T> {
inner: Mutex<T>,
}Expand description
実行キューの錠。取っている間は割り込みを止める(外すと元の状態へ戻す)。
割り込みを止めて持つので、持ったまま同じコアのタイマー割り込みに割り込まれることも、 持ったままほかのスレッドへ切り替わることも無い(持つ時間は数マイクロ秒で終わる)。
Fields§
§inner: Mutex<T>Implementations§
Auto Trait Implementations§
impl<T> !Freeze for RqMutex<T>
impl<T> !RefUnwindSafe for RqMutex<T>
impl<T> Send for RqMutex<T>where
T: Send,
impl<T> Sync for RqMutex<T>where
T: Send,
impl<T> Unpin for RqMutex<T>where
T: Unpin,
impl<T> UnsafeUnpin for RqMutex<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RqMutex<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more