Struct sync::raw::MutexGuard[src]

pub struct MutexGuard<'a> {
    pub cond: Condvar<'a>,
    // some fields omitted
}

An RAII structure which is used to gain access to a mutex's condition variable. Additionally, when a value of this type is dropped, the corresponding mutex is also unlocked.

Fields

cond

Inner condition variable which is connected to the outer mutex, and can be used for atomic-unlock-and-deschedule.