about summary refs log tree commit diff
path: root/library/std/src/sync/rwlock
AgeCommit message (Collapse)AuthorLines
2025-01-02Move some things to `std::sync::poison` and reexport them in `std::sync`Pavel Grigorenko-729/+0
2024-11-30Add value accessor methods to `Mutex` and `RwLock`EFanZh-27/+142
2024-11-25miri: disable test_downgrade_observe test on macOSRalf Jung-1/+4
2024-11-19ignore an occasionally-failing test in MiriRalf Jung-0/+3
2024-11-16reduce threads in downgrade testConnor Tsui-1/+1
2024-11-16fix `DOWNGRADED` bit unpreservedConnor Tsui-1/+1
Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
2024-11-16fix memory ordering bug + bad testConnor Tsui-47/+32
This commit fixes a memory ordering bug in the futex implementation (`Relaxed` -> `Release` on `downgrade`). This commit also removes a badly written test that deadlocked and replaces it with a more reasonable test based on an already-tested `downgrade` test from the parking-lot crate.
2024-11-16add `RwLock` `downgrade` testsConnor Tsui-2/+122
2024-08-08rwlock: disable 'frob' test in Miri on macOSRalf Jung-0/+4
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2023-12-05Specify behavior if the closure passed to *Guard::*map panics.Zachary S-0/+136
2023-12-05Add MappedMutexGuard and MappedRwLock*Guard tests.Zachary S-1/+104
2023-01-04Update rand in the stdlib tests, and remove the getrandom feature from itThom Chiovoloni-2/+2
2022-08-18make many std tests work in MiriRalf Jung-1/+1
2022-06-19FormattingRobin Raymond-1/+1
2022-06-19Make RwLockReadGuard covariantRobin Raymond-1/+13
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-2/+2
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+247
Also doing fmt inplace as requested.