treiber_stack

Crates.iotreiber_stack
lib.rstreiber_stack
version1.1.1
sourcesrc
created_at2023-06-03 04:40:49.005099
updated_at2024-10-25 18:40:34.040655
descriptionA lockless, thread-safe, atomic linked-list.
homepagehttps://github.com/timboudreau/treiber_stack
repositoryhttps://github.com/timboudreau/treiber_stack.git
max_upload_size
id881343
size31,015
Tim Boudreau (timboudreau)

documentation

README

treiber_stack - A Rust Treiber Stack

A concurrent, lockless linked list - the well-known, extremely useful Treiber stack data structure.

This is a handy data structure in any scenario where tasks on multiple threads "throw something over the wall" for later processing on another thread, where you can't afford blocking the thread in question due to contention.

To use, simply add to your Cargo.toml

treiber_stack = "1.0.2"

Check the latest version, but this library is unlikely to be updated often if ever - it is a simple data structure.

For background on why this library exists, see this Reddit thread.

Commit count: 10

cargo fmt