Skip to content

tomaka/atomicbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Safe atomic Box types for Rust

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%