Struct priomutex::MutexGuard
[−]
[src]
pub struct MutexGuard<'a, T: 'a>(_, _);
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.
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.
impl<'a, T> DerefMut for MutexGuard<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> !Send for MutexGuard<'a, T>
impl<'a, T> Sync for MutexGuard<'a, T> where
T: Send + Sync,
T: Send + Sync,