Turns a lock-guard of the underlying lock into a mutex-guard.
impl<T> Mutex<T> {
fn existing_lock(&'a self, guard: LockGuard<'a>) -> MutexGuard<'a, T>
}| Name | Description |
|---|---|
| guard | The lock-guard of the underlying lock. |
Returns a mutex-guard of this mutex.
The provided lock-guard must be a lock-guard of the underlying lock or the process is aborted.