4 releases
1.0.0 |
|
---|---|
1.0.0-beta.3 | Jul 13, 2023 |
1.0.0-beta.2 | Jul 10, 2023 |
1.0.0-beta.1 | Jul 2, 2023 |
0.1.0 | Mar 11, 2023 |
#13 in #deadlock
153 downloads per month
Used in 2 crates
10KB
151 lines
toad-stem
This microcrate provides a mutable memory wrapper that is thread-safe
and usable on no_std
platforms by using std::sync::RwLock
when crate feature std
is enabled (this is the default) and
falling back to core::cell::Cell
when std
disabled.
the API of the core struct Stem
was chosen to discourage long-lived
immutable references to the cell's contents, so that deadlocks are less likely.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
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.