[][src]Function padlock::get_mutex_lock

pub fn get_mutex_lock<T>(m: &Mutex<T>) -> MutexGuard<T>

Get the MutexGuard directly, aquired with a spinlock.

Important: Don't forget to drop the lock! Locks release themselfs when they go out of scope but the faster you drop it, the faster other threads get access.