Skip to main content

lock_descriptor

Function lock_descriptor 

Source
pub fn lock_descriptor(
    file: &File,
    exclusive: bool,
    nonblocking: bool,
) -> Result<bool>
Expand description

Locks an immutable descriptor without locking its readable byte range on Windows. Closing the file releases the marker; callers must not call unlock for this lock.