Registry / utility / cache-padded

cache-padded

JSON →
library1.3.0rscratesunverified

Prevent false sharing by padding and aligning data structures to cache line boundaries.

# Cargo.toml [dependencies] cache-padded = "1.3.0"
INSTALL
IMPORT
SIG · CACHE-PADDED
C
cache-padded
utilityrustv1.3.0
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.

CachePadded
use cache_padded::CachePadded;

Wrap a value to avoid false sharing in concurrent code.

use cache_padded::CachePadded; fn main() { let padded = CachePadded::new(42u64); println!("Value: {}", *padded); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
cache-padded — cargo add cache-padded · libregistry