Files
rust/library/std/src
Jonathan Brouwer 5964330d29 Rollup merge of #152056 - hzeller:feature-20260203-clarify-rwlock-reentrance, r=joboet
RwLock: refine documentation to emphasize non-reentrancy guarantees

This addresses the need for clarification brought up in rust-lang/rust#149693. Specifically, it notes that some implementations may choose to panic if they detect deadlock situations during recursive locking attempts for both `read()` and `write()` calls.

  * Provide an example highlighting that multiple read locks can be held across different threads simultaneously.
  * Remove the example that shows a situation that can potentially deadlock. (as demonstrated in the very same documentation a few paragraphs above)
  * Improve documentation regarding the possibility of panics during recursive read or write lock attempts.

Issues: https://github.com/rust-lang/rust/issues/149693
2026-02-07 19:34:49 +01:00
..
2023-12-10 10:56:22 +08:00
2026-01-11 16:39:18 +03:00
2025-01-11 06:35:21 +02:00
2026-02-01 23:48:27 -05:00
2026-01-21 19:20:04 +01:00
2024-04-08 11:57:17 +00:00
2025-02-07 16:54:07 +01:00