Struct cros_async::sync::mu::RawRwLock   
source · pub(crate) struct RawRwLock {
    state: AtomicUsize,
    waiters: UnsafeCell<LinkedList<WaiterAdapter>>,
}Fields§
§state: AtomicUsize§waiters: UnsafeCell<LinkedList<WaiterAdapter>>Implementations§
source§impl RawRwLock
 
impl RawRwLock
pub fn new() -> RawRwLock
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§
impl !Freeze for RawRwLock
impl !RefUnwindSafe for RawRwLock
impl Unpin for RawRwLock
impl !UnwindSafe for RawRwLock
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