commit | 00ae16c006e7cbaae1607b18e42773aea747dd42 | [log] [tgz] |
---|---|---|
author | Jakub Kotur <qtr@google.com> | Tue Dec 22 09:58:47 2020 +0100 |
committer | Jakub Kotur <qtr@google.com> | Tue Mar 16 15:53:07 2021 +0100 |
tree | e7043dd243c60e90da63a7851b0fd7091a284886 | |
parent | a1fea5657190801bcb3a7160fb41eb26de8e8ddf [diff] |
Add metadata files for crossbeam-utils. Tests are disabled because the parser on device is considering them failing. This is because every test that is printing unrecognized output is considered failing. In case of this lib it's validating if threads are behaving correctly when panicking, and panic is printing stuff to stderr. Interestingly this is and issue only on device because there we're parsing both stdout and stderr while as opposed to stdout only on host. I'll enable tests for both host and device once the parser issue is solved. Bug: 155309706 Change-Id: Ic7762ed7bce403d41ecb28ba4b578de614309b6a
This crate provides miscellaneous tools for concurrent programming:
AtomicCell
, a thread-safe mutable memory location.(no_std)AtomicConsume
, for reading from primitive atomic types with “consume” ordering.(no_std)Parker
, a thread parking primitive.ShardedLock
, a sharded reader-writer lock with fast concurrent reads.WaitGroup
, for synchronizing the beginning or end of some computation.Backoff
, for exponential backoff in spin loops.(no_std)CachePadded
, for padding and aligning a value to the length of a cache line.(no_std)scope
, for spawning threads that borrow local variables from the stack.Features marked with (no_std) can be used in no_std
environments.
Add this to your Cargo.toml
:
[dependencies] crossbeam-utils = "0.8"
Crossbeam Utils supports stable Rust releases going back at least six months, and every time the minimum supported Rust version is increased, a new minor version is released. Currently, the minimum supported Rust version is 1.36.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.