Struct defrag::SliceMutex
[−]
[src]
pub struct SliceMutex<'a, T> { /* fields omitted */ }
same as Mutex
except locks a Slice
Methods
impl<'mutex, T> SliceMutex<'mutex, T>
[src]
fn lock<'a>(&'a mut self) -> Slice<'a, 'mutex, T>
Get a usable Slice, locking the underlying memory from being defragmented by the Pool.
See Mutex.lock
for more information.