diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2025-01-30 11:42:19 +0100 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2025-01-30 11:48:26 +0100 |
| commit | fb1ad2fe02dc7d13b6a088b535bd8c293a8085be (patch) | |
| tree | 39bbaab9cfe1514d3300152cdb6ebaeba68ebe9d /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp | |
| parent | e6f12c8b7d8d5c821c32fb2739ea01d1d874c58a (diff) | |
| download | rust-fb1ad2fe02dc7d13b6a088b535bd8c293a8085be.tar.gz rust-fb1ad2fe02dc7d13b6a088b535bd8c293a8085be.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
