pub(crate) struct RawMutex {
state: AtomicUsize,
waiters: UnsafeCell<LinkedList<WaiterAdapter>>,
}
Fields
state: AtomicUsize
waiters: UnsafeCell<LinkedList<WaiterAdapter>>
Implementations
sourceimpl RawMutex
impl RawMutex
pub fn new() -> RawMutex
pub async fn lock(&self)
pub async fn read_lock(&self)
async fn lock_slow<K: Kind>(&self, clear: usize, zero_mask: usize)
pub fn unlock(&self)
pub fn read_unlock(&self)
fn unlock_slow(&self)
fn cancel_waiter(&self, waiter: &Waiter, wake_next: bool)
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more