#scoped #thread #atomic #cache

crossbeam-utils

Utilities for concurrent programming

10 releases (4 breaking)

0.5.0 Jul 22, 2018
0.4.1 Jun 28, 2018
0.4.0 May 17, 2018
0.3.2 Mar 11, 2018
0.1.0 Aug 28, 2017

#1 in Concurrency

Download history 53106/week @ 2018-09-17 64382/week @ 2018-09-24 62015/week @ 2018-10-01 66978/week @ 2018-10-08 64462/week @ 2018-10-15 61649/week @ 2018-10-22 70057/week @ 2018-10-29 69492/week @ 2018-11-05 81757/week @ 2018-11-12 101772/week @ 2018-11-19 85655/week @ 2018-11-26 90052/week @ 2018-12-03 82405/week @ 2018-12-10

165,334 downloads per month
Used in 2,202 crates (26 directly)

MIT/Apache

61KB
854 lines

Crossbeam Utils

Build Status License Cargo Documentation Rust 1.26+

This crate provides miscellaneous utilities for concurrent programming:

  • AtomicConsume allows reading from primitive atomic types with "consume" ordering.
  • CachePadded<T> pads and aligns a value to the length of a cache line.
  • scope() can spawn threads that borrow local variables from the stack.

Usage

Add this to your Cargo.toml:

[dependencies]
crossbeam-utils = "0.6"

Next, add this to your crate:

extern crate crossbeam_utils;

Compatibility

The minimum supported Rust version is 1.26.

Features available in no_std environments:

  • AtomicConsume
  • CachePadded<T>

License

Licensed under either of

at your option.

Contribution

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.

Dependencies