Crate atomic_utilities

Source
Expand description

This library contains a hodgepodge of various utilities for writing fast lockfree code. The current modules are:

  1. artificial_dep: Used for creating fake data dependencies and eliding fences

  2. fence_rmw: Used for writing RMW operations that act as a full SeqCst fence in an efficient manner

See each module for more documentation

Modulesยง

artificial_dep
This module provides a function that forces an artificial data dependency between two loads. Basically, the code:
fence_rmw
This mod provides orderings to use with RMW operations that optimally handle the case when all loads and stores after an RMW operation must be ordered after the operation.