mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-12-30 05:12:11 +00:00
to catch false positives in newer version of scoped_threadpool
this change is required to prevent this snippet triggering a TSAN error (data race)
in debug & release mode
``` rust
// scoped_threadpool = "0.1.9"
use scoped_threadpool::Pool;
fn main() {
Pool::new(2).scoped(move |scope| {
scope.execute(move || {});
scope.execute(move || {});
});
}
```
heapless
staticfriendly data structures that don't require dynamic memory allocation
Documentation
Change log
Tests
# run all
cargo test --features 'serde','x86-sync-pool'
# run only for example histbuf tests
cargo test histbuf --features 'serde','x86-sync-pool'
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%