This is an utilities crate.
- Hint: support
likely
andunlikely
. - Backoff: retry with support reduce CPU cache coherence.
- CachePadded: aligns CPU cache line for types.
- RwSpinLock: concurrent thread safe read-write locking for the fast changes.
- Defer: support
Golang's defer
.
Add this to your Cargo.toml
:
[dependencies]
omango-util = "0.1.6"
The minimum supported Rust version is 1.57
.
The crate is licensed under the terms of the MIT license. See LICENSE for more information.
This product includes copies and modifications of software developed by third parties:
-
src/backoff.rs includes copies and modifications of code from Crossbeam-Utils, licensed under the MIT License and the Apache License, Version 2.0.
-
src/cache_padded.rs includes copies and modifications of code from Crossbeam-Utils, licensed under the MIT License and the Apache License, Version 2.0.
See the source code files for more details.
The third party licenses can be found in here.