Struct priomutex::MutexGuard
[−]
[src]
pub struct MutexGuard<'a, T: 'a> { /* fields omitted */ }
An RAII guard. Frees the mutex when dropped.
It can be dereferenced to access the data protected by the mutex.
Trait Implementations
impl<'a, T> Drop for MutexGuard<'a, T>
[src]
fn drop(&mut self)
[src]
Release the lock.
If any threads are ready to take the mutex (ie. are currently blocked calling lock
), then
the one with the highest priority will receive it; if not, the mutex will just be freed.
This function performs a syscall when there are threads waiting. On my machine this takes ~3 μs.
impl<'a, T> Deref for MutexGuard<'a, T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.