rust/library/std/src/sync
bors e83c45a98b Auto merge of #128219 - connortsui20:rwlock-downgrade, r=tgross35
Rwlock downgrade

Tracking Issue: #128203

This PR adds a `downgrade` method for `RwLock` / `RwLockWriteGuard` on all currently supported platforms.

Outstanding questions:
- [x] ~~Does the `futex.rs` change affect performance at all? It doesn't seem like it will but we can't be certain until we bench it...~~
- [x] ~~Should the SOLID platform implementation [be ported over](https://github.com/rust-lang/rust/pull/128219#discussion_r1693470090) to the `queue.rs` implementation to allow it to support downgrades?~~
2024-11-18 07:24:12 +00:00
..
barrier Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
condvar Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
lazy_lock Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
mpmc Rollup merge of #132869 - lolbinarycat:library-fix-too_long_first_doc_paragraph, r=tgross35 2024-11-12 06:27:19 +01:00
mpsc split up the first paragraph of doc comments for better summaries 2024-11-10 13:22:58 -06:00
mutex Specify behavior if the closure passed to *Guard::*map panics. 2023-12-05 17:30:46 -06:00
once std: fix busy-waiting in Once::wait_force, add more tests 2024-07-31 17:44:10 +02:00
once_lock Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
reentrant_lock remove an unused type from the reentrant lock tests 2024-04-22 19:36:21 +02:00
rwlock reduce threads in downgrade test 2024-11-16 12:31:14 -05:00
barrier.rs Replace move|| with move || in compiler/ and library/ 2024-06-18 23:25:08 +08:00
condvar.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
lazy_lock.rs fix lazylock comment 2024-11-07 10:51:00 +08:00
mod.rs Add multi-producer, multi-consumer channel (mpmc) 2024-09-30 20:43:51 +03:00
mutex.rs Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
once_lock.rs Document PartialEq impl for OnceLock 2024-10-21 20:15:04 -07:00
once.rs library: consistently use American spelling for 'behavior' 2024-10-25 12:02:47 +02:00
poison.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
reentrant_lock.rs Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
rwlock.rs add downgrade method onto RwLockWriteGuard 2024-11-16 12:31:13 -05:00