Skip to content

Commit

Permalink
Rollup merge of #136288 - joshtriplett:would-you-could-you-with-some-…
Browse files Browse the repository at this point in the history
…locks--would-you-could-you-in-some-docs, r=m-ou-se

Improve documentation for file locking

Add notes to each method stating that locks get dropped on close.

Clarify the return values of the try methods: they're only defined if
the lock is held via a *different* file handle/descriptor. That goes
along with the documentation that calling them while holding a lock via
the *same* file handle/descriptor may deadlock.

Document the behavior of unlock if no lock is held.

r? `@m-ou-se`
(Documentation changes requested in rust-lang/rust#130994 .)
  • Loading branch information
matthiaskrgr authored Jan 30, 2025
2 parents 7b8495e + b986f17 commit b28637f
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit b28637f

Please sign in to comment.