mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-30 14:00:29 +00:00
![bors[bot]](/assets/img/avatar_default.png)
149: Make Producer<..., SingleCore> Send, like Consumer r=japaric a=BryanKadzban I assume there's no reason that only multi-core Producers are marked Send, while Consumers are not (they're pretty symmetrical). (Context: I'm trying to use an SPSC queue on a single cortex-m0 MCU. So I can guarantee that a SingleCore queue is safe because there is no other core it could possibly be shared with. The RTFM framework adds an assert_send on the producer, since it's shared between init and an SPI receiver interrupt. It also adds an assert_send on the Consumer, since it's shared between init and the I2C transmit interrupt, but that one works since Consumer has this extra C type in the impl already.) Co-authored-by: Bryan Kadzban <github@kadzban.net>
heapless
static
friendly data structures that don't require dynamic memory allocation
Documentation
Change log
License
Licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://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.
Description
Languages
Rust
100%