This feature exposes advisory file locks on File. They allow a file handle to acquire an exclusive or shared file lock, which blocks other file handles to the same file from acquiring a conflicting lock. Some semantics are platform dependent, and these are documented in the API documentation.
Feature gate:
#![feature(file_lock)]
This is a tracking issue for https://github.com/rust-lang/libs-team/issues/412
This feature exposes advisory file locks on
File
. They allow a file handle to acquire an exclusive or shared file lock, which blocks other file handles to the same file from acquiring a conflicting lock. Some semantics are platform dependent, and these are documented in the API documentation.Public API
Steps / History
Unresolved Questions