Registry / other / lockfree

lockfree

JSON →
library0.5.1rscratesunverified

This crate provides concurrent data structures and a solution to the ABA problem as an alternative of hazard pointers

# Cargo.toml [dependencies] lockfree = "0.5.1"
INSTALL
IMPORT
SIG · LOCKFREE
L
lockfree
otherrustv0.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Stack
use lockfree::stack::Stack;

Uses a lock-free stack.

use lockfree::stack::Stack; fn main() { let stack = Stack::new(); stack.push(42); if let Some(val) = stack.pop() { println!("Popped: {}", val); } }
Debug
Known issues
gotchaRequires careful memory ordering; incorrect usage can lead to data races.
fix
Ensure proper use of atomic operations and consider using higher-level abstractions.
affects: >=0.5.0
Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lockfree — cargo add lockfree · libregistry