Skip to content
This repository was archived by the owner on Nov 5, 2018. It is now read-only.

Commit 6756505

Browse files
author
Stjepan Glavina
authored
Add AtomicCell (#13)
* Add AtomicCell * Remove as_ptr * Add dependencies and fix module structure * Add atomic/mod.rs * Add a comment on spurious failures * Clarify comments on uses of SeqCst * Change compare_and_set to compare_exchange * Rename methods and add compare_and_swap * Remove AtomicCell::take * More fetch_* methods * Remove fetch_nand because Rust 1.25.0 doesn't have it
1 parent 60eed74 commit 6756505

4 files changed

Lines changed: 1030 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ use_std = []
1717
nightly = []
1818

1919
[dependencies]
20+
cfg-if = "0.1"

0 commit comments

Comments
 (0)