Skip to main content

with_shared_lock

Function with_shared_lock 

Source
pub fn with_shared_lock<F, R>(path: &Path, operation: F) -> Result<R>
where F: FnOnce(&mut File) -> Result<R>,
Expand description

Perform read-only operation with shared lock (allows multiple concurrent readers)