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.