6 releases

0.1.6 Aug 21, 2024
0.1.5 Apr 17, 2024
0.1.0 Mar 20, 2024

#995 in Data structures


Used in 4 crates

MIT license

26KB
379 lines

Omango-Util

This is an utilities crate.

  • Hint: support likely and unlikely.
  • 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.

Table of Contents

Usage

Add this to your Cargo.toml:

[dependencies]
omango-util = "0.1.6"

Compatibility

The minimum supported Rust version is 1.57.

License

The crate is licensed under the terms of the MIT license. See LICENSE for more information.

Third party software

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.

No runtime deps