mintex

Crates.iomintex
lib.rsmintex
version0.1.3
sourcesrc
created_at2022-10-27 13:49:55.193246
updated_at2024-01-10 15:41:46.591343
descriptionminimal mutex
homepage
repositoryhttps://github.com/garypen/mintex
max_upload_size
id699165
size18,104
Gary Pennington (garypen)

documentation

README

mintex

A minimal Mutex

A drop-in for std::sync::Mutex which doesn't do poisoning. The lock will spin and yield if the lock isn't acquired. The implementation doesn't attempt to be "fair", but because it's so simple it is fast.

The main reason for it to exist, is because I know it does not allocate memory during execution and that's a desirable feature for some use cases.

I have run the tests under miri and no issues are detected.

Crates.io

API Docs

Installation

[dependencies]
mintex = "0.1"

License

Apache 2.0 licensed. See LICENSE for details.

Commit count: 11

cargo fmt