atomicbox_nostd

Crates.ioatomicbox_nostd
lib.rsatomicbox_nostd
version0.3.1
sourcesrc
created_at2020-07-19 13:48:18.762682
updated_at2020-07-19 13:48:18.762682
descriptionFork of the atomicbox library that works in no_std contexts
homepage
repositoryhttps://github.com/tomaka/atomicbox
max_upload_size
id266855
size34,673
xml (github:serde-rs:xml)

documentation

README

AtomicBox - Safe atomic boxes for Rust.

The Rust standard library provides atomic booleans, integers, and pointers. AtomicPtr is safe for loading, storing, and so forth; but pointers are unsafe to use.

It turns out that a safe atomic Box type is possible. Unfortunately, the only operation it supports is swap. Still, this is sufficient for some lock-free data structures, so here it is!

License

AtomicBox is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.

Commit count: 24

cargo fmt