Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
benches/ | 03-May-2024 | - | 157 | 127 | ||
patches/ | 03-May-2024 | - | 104 | 93 | ||
src/ | 03-May-2024 | - | 4,028 | 1,736 | ||
tests/ | 03-May-2024 | - | 1,090 | 885 | ||
.cargo_vcs_info.json | D | 03-May-2024 | 109 | 6 | 6 | |
Android.bp | D | 03-May-2024 | 4.2 KiB | 168 | 156 | |
CHANGELOG.md | D | 03-May-2024 | 6.5 KiB | 213 | 133 | |
Cargo.toml | D | 03-May-2024 | 1.2 KiB | 52 | 45 | |
Cargo.toml.orig | D | 03-May-2024 | 1.4 KiB | 46 | 39 | |
LICENSE | D | 03-May-2024 | 10.6 KiB | 202 | 169 | |
LICENSE-APACHE | D | 03-May-2024 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | D | 03-May-2024 | 1.1 KiB | 28 | 23 | |
METADATA | D | 03-May-2024 | 653 | 24 | 22 | |
MODULE_LICENSE_APACHE2 | D | 03-May-2024 | 0 | |||
OWNERS | D | 03-May-2024 | 40 | 2 | 1 | |
README.md | D | 03-May-2024 | 3.1 KiB | 74 | 52 | |
TEST_MAPPING | D | 03-May-2024 | 1.8 KiB | 88 | 87 | |
build-common.rs | D | 03-May-2024 | 482 | 14 | 8 | |
build.rs | D | 03-May-2024 | 2.4 KiB | 62 | 28 | |
cargo2android.json | D | 03-May-2024 | 135 | 9 | 9 | |
no_atomic.rs | D | 03-May-2024 | 2.4 KiB | 86 | 80 |
README.md
1# Crossbeam Utils 2 3[]( 4https://github.com/crossbeam-rs/crossbeam/actions) 5[]( 6https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-utils#license) 7[]( 8https://crates.io/crates/crossbeam-utils) 9[]( 10https://docs.rs/crossbeam-utils) 11[]( 12https://www.rust-lang.org) 13[](https://discord.com/invite/JXYwgWZ) 14 15This crate provides miscellaneous tools for concurrent programming: 16 17#### Atomics 18 19* [`AtomicCell`], a thread-safe mutable memory location.<sup>(no_std)</sup> 20* [`AtomicConsume`], for reading from primitive atomic types with "consume" ordering.<sup>(no_std)</sup> 21 22#### Thread synchronization 23 24* [`Parker`], a thread parking primitive. 25* [`ShardedLock`], a sharded reader-writer lock with fast concurrent reads. 26* [`WaitGroup`], for synchronizing the beginning or end of some computation. 27 28#### Utilities 29 30* [`Backoff`], for exponential backoff in spin loops.<sup>(no_std)</sup> 31* [`CachePadded`], for padding and aligning a value to the length of a cache line.<sup>(no_std)</sup> 32* [`scope`], for spawning threads that borrow local variables from the stack. 33 34*Features marked with <sup>(no_std)</sup> can be used in `no_std` environments.*<br/> 35 36[`AtomicCell`]: https://docs.rs/crossbeam-utils/*/crossbeam_utils/atomic/struct.AtomicCell.html 37[`AtomicConsume`]: https://docs.rs/crossbeam-utils/*/crossbeam_utils/atomic/trait.AtomicConsume.html 38[`Parker`]: https://docs.rs/crossbeam-utils/*/crossbeam_utils/sync/struct.Parker.html 39[`ShardedLock`]: https://docs.rs/crossbeam-utils/*/crossbeam_utils/sync/struct.ShardedLock.html 40[`WaitGroup`]: https://docs.rs/crossbeam-utils/*/crossbeam_utils/sync/struct.WaitGroup.html 41[`Backoff`]: https://docs.rs/crossbeam-utils/*/crossbeam_utils/struct.Backoff.html 42[`CachePadded`]: https://docs.rs/crossbeam-utils/*/crossbeam_utils/struct.CachePadded.html 43[`scope`]: https://docs.rs/crossbeam-utils/*/crossbeam_utils/thread/fn.scope.html 44 45## Usage 46 47Add this to your `Cargo.toml`: 48 49```toml 50[dependencies] 51crossbeam-utils = "0.8" 52``` 53 54## Compatibility 55 56Crossbeam Utils supports stable Rust releases going back at least six months, 57and every time the minimum supported Rust version is increased, a new minor 58version is released. Currently, the minimum supported Rust version is 1.38. 59 60## License 61 62Licensed under either of 63 64 * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) 65 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) 66 67at your option. 68 69#### Contribution 70 71Unless you explicitly state otherwise, any contribution intentionally submitted 72for inclusion in the work by you, as defined in the Apache-2.0 license, shall be 73dual licensed as above, without any additional terms or conditions. 74