Skip to content

Commit 19a0bbc

Browse files
bors[bot]Stjepan Glavina
and
Stjepan Glavina
committed
Merge #262
262: Move AtomicCell into crossbeam-utils r=jeehoonkang a=stjepang At this point, I feel pretty confident about the current state of `AtomicCell` in the sense that we probably won't make any breaking changes to its public API in the future. It's also a reasonably small utility without dependencies that deserves living in `crossbeam-utils`. The Rust compiler would like to use it in place of its `LockCell`, and already has `crossbeam-utils` whitelisted. See [this PR](rust-lang/rust#56614 (comment)). Let's move `AtomicCell` into `crossbeam-utils` so that people can use it without depending on whole `crossbeam`. Co-authored-by: Stjepan Glavina <stjepang@gmail.com>
2 parents a3252af + a8e38ed commit 19a0bbc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
File renamed without changes.

crossbeam-utils/src/atomic/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Additional utilities for atomics.
22
3+
mod atomic_cell;
34
mod consume;
45

6+
pub use self::atomic_cell::AtomicCell;
57
pub use self::consume::AtomicConsume;

src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ mod _epoch {
5959
pub use _epoch::crossbeam_epoch as epoch;
6060

6161
mod arc_cell;
62-
mod atomic_cell;
6362

6463
extern crate crossbeam_utils;
6564

6665
/// Additional utilities for atomics.
6766
pub mod atomic {
6867
pub use arc_cell::ArcCell;
69-
pub use atomic_cell::AtomicCell;
68+
pub use crossbeam_utils::atomic::AtomicCell;
7069
pub use crossbeam_utils::atomic::AtomicConsume;
7170
}
7271

0 commit comments

Comments
 (0)