[][src]Struct kernel::spinlock::MutexGuard

pub struct MutexGuard<'a, T: ?Sized + 'a> {
    lock: &'a u32,
    mutex: &'a Mutex<T>,
    data: &'a mut T,
    intr_lock: IntrLockGuard<'a>,
}

A guard to which the protected data can be accessed

When the guard falls out of scope it will release the lock.

Fields

lock: &'a u32mutex: &'a Mutex<T>data: &'a mut Tintr_lock: IntrLockGuard<'a>

Implementations

impl<'a, T: ?Sized> MutexGuard<'a, T>[src]

pub fn into_weak(self) -> WeakMutexGuard<'a, T>[src]

Temporarily unlock Mutex by obtaining a weak guard