[−][src]Trait shared_memory::ReadLockable
Provides rlock/rlock_as_slice functionnalities
Required methods
fn rlock<D: SharedMemCast>(
&self,
lock_index: usize
) -> Result<ReadLockGuard<D>, Box<dyn Error>>
&self,
lock_index: usize
) -> Result<ReadLockGuard<D>, Box<dyn Error>>
Returns a read lock to the shared memory
The caller must ensure that the index given to this function is valid
fn rlock_as_slice<D: SharedMemCast>(
&self,
lock_index: usize
) -> Result<ReadLockGuardSlice<D>, Box<dyn Error>>
&self,
lock_index: usize
) -> Result<ReadLockGuardSlice<D>, Box<dyn Error>>
Returns a read lock to the shared memory as a slice
The caller must ensure that the index given to this function is valid
Implementors
impl ReadLockable for SharedMem[src]
fn rlock<D: SharedMemCast>(
&self,
lock_index: usize
) -> Result<ReadLockGuard<D>, Box<dyn Error>>[src]
&self,
lock_index: usize
) -> Result<ReadLockGuard<D>, Box<dyn Error>>
fn rlock_as_slice<D: SharedMemCast>(
&self,
lock_index: usize
) -> Result<ReadLockGuardSlice<D>, Box<dyn Error>>[src]
&self,
lock_index: usize
) -> Result<ReadLockGuardSlice<D>, Box<dyn Error>>