rust/library/std/tests/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
..
barrier.rs Make the compile test use a const instead 2025-09-09 17:14:38 +02:00
condvar.rs std: improve handling of timed condition variable waits on macOS 2025-10-14 11:57:50 +02:00
lazy_lock.rs modify LazyLock poison panic message 2025-08-22 14:59:34 -04:00
lib.rs Rollup merge of #143191 - connortsui20:stabilize-rwlock-downgrade, r=tgross35 2025-10-15 23:41:00 +02:00
mpmc.rs library: Increase timeout on mpmc test to reduce flakes 2025-06-17 16:10:37 -07:00
mpsc.rs Avoid a gratuitous 10s wait in a stress test 2025-06-08 20:22:07 -07:00
mpsc_sync.rs Move std::sync unit tests to integration tests 2025-01-26 10:28:05 +00:00
mutex.rs Implement non-poisoning Mutex::with_mut, RwLock::with and RwLock::with_mut 2025-10-04 17:16:00 +08:00
once.rs Mark some std tests as requiring panic = "unwind" 2025-03-10 08:31:06 -07:00
once_lock.rs Mark some std tests as requiring panic = "unwind" 2025-03-10 08:31:06 -07:00
reentrant_lock.rs Move std::sync unit tests to integration tests 2025-01-26 10:28:05 +00:00
rwlock.rs Implement non-poisoning Mutex::with_mut, RwLock::with and RwLock::with_mut 2025-10-04 17:16:00 +08:00