Crates.io | tagptr |
lib.rs | tagptr |
version | 0.2.0 |
source | src |
created_at | 2021-08-13 09:10:42.049617 |
updated_at | 2021-08-13 09:10:42.049617 |
description | Strongly typed atomic and non-atomic tagged pointers |
homepage | |
repository | https://github.com/oliver-giersch/tagptr.git |
max_upload_size | |
id | 435633 |
size | 71,394 |
Strongly typed marked pointers for storing bit patterns (tags) alongside raw pointers for concurrent programming with atomic operations.
Add the following to your Cargo.toml
[dependencies]
tagptr = "0.2.0"
Most atomic CPU instructions only work with register-sized memory words (e.g., 32-bit or 64-bit). Many low-level concurrent algorithms thus need to store aditional data (tags) in the unused lower bits of pointers to referenced data objects. This crate provides thin and efficient abstractions for working with such pointers.
tagptr
is distributed under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.