1 stable release

1.0.0 Jul 21, 2024

#1791 in Embedded development


Used in scoped-mutex

MIT/Apache

5KB

scoped mutex

When a mutex and a closure love each other very much.

Provenance

This crate is a fork of portions of the embassy-sync crate.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Scoped Mutex Traits

This crate provides traits that are aimed at compatibility for scoped mutexes.

Compared to the more general traits provided by the lock_api crate, these traits are aimed at being more compatible with implementations based on critical sections, are easier to work with in a nested or strictly LIFO pattern.

No runtime deps