Crates.io | atomicbox_nostd |
lib.rs | atomicbox_nostd |
version | 0.3.1 |
source | src |
created_at | 2020-07-19 13:48:18.762682 |
updated_at | 2020-07-19 13:48:18.762682 |
description | Fork of the atomicbox library that works in no_std contexts |
homepage | |
repository | https://github.com/tomaka/atomicbox |
max_upload_size | |
id | 266855 |
size | 34,673 |
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!
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.