Struct std::rt::mutex::LockGuard[src]
pub struct LockGuard<'a> {
// some fields omitted
}Automatically unlocks the mutex that it was created from on destruction.
Using this makes lock-based code resilient to unwinding/task failure, because the lock will be automatically unlocked even then.
Methods
impl<'a> LockGuard<'a>
unsafe fn wait<'a>(&self)
Block on the internal condition variable.
unsafe fn signal<'a>(&self)
Signals a thread in wait to wake up.