rust/library/std/src/sync
Matthias Krüger 8d6356b8d8
Rollup merge of #143191 - connortsui20:stabilize-rwlock-downgrade, r=tgross35
Stabilize `rwlock_downgrade` library feature

Tracking Issue: https://github.com/rust-lang/rust/issues/128203

Method to be stabilized:

```rust
impl<'a, T: ?Sized> RwLockWriteGuard<'a, T> {
    pub fn downgrade(s: Self) -> RwLockReadGuard<'a, T> {}
}
```

~~I would like to point out that my documentation comment is longer than ideal, but at the same time I don't really know how else to show why `downgrade` is actually necessary (instead of just unlocking and relocking). If anyone has ideas for making this more concise that would be great!~~ I have made the documentation a bit more clear.

Stabilization report: https://github.com/rust-lang/rust/issues/128203#issuecomment-3016682463
2025-10-15 23:41:00 +02:00
..
mpmc Fix wrong cache line size of riscv64 2025-08-08 11:19:04 +08:00
nonpoison Rollup merge of #143191 - connortsui20:stabilize-rwlock-downgrade, r=tgross35 2025-10-15 23:41:00 +02:00
poison Rollup merge of #143191 - connortsui20:stabilize-rwlock-downgrade, r=tgross35 2025-10-15 23:41:00 +02:00
barrier.rs Add suggestions 2025-09-10 07:55:03 +02:00
lazy_lock.rs modify LazyLock poison panic message 2025-08-22 14:59:34 -04:00
mod.rs move WaitTimeoutResult up to mod.rs 2025-08-23 09:20:47 -04:00
mpsc.rs remove deprecated Error::description in impls 2025-08-26 06:36:53 +00:00
nonpoison.rs move WaitTimeoutResult up to mod.rs 2025-08-23 09:20:47 -04:00
once_lock.rs Document guarantees of poisoning 2025-07-19 19:25:59 +03:00
poison.rs Remove unreachable expression warning from std. 2025-10-11 20:50:21 +00:00
reentrant_lock.rs Mutex/RwLock/ReentrantLock::data_ptr to be const fn 2025-09-22 12:51:50 -07:00