commit | 534a420c043d48db7c5059f96a314e9409b8e8a6 | [log] [tgz] |
---|---|---|
author | Scott Lobdell <slobdell@google.com> | Thu Mar 11 19:08:49 2021 +0000 |
committer | Scott Lobdell <slobdell@google.com> | Thu Mar 11 19:08:49 2021 +0000 |
tree | 9f6371be9a50826bf2dac84f8799c0ed7a61b536 | |
parent | eaf46756bc3215713a9c90caf0ef19f2d985d023 [diff] | |
parent | 17215cee185d87f3a0d74c97ef7505e0dd14247c [diff] |
Merge SP1A.210311.001 Change-Id: I51f29fbfa55f6a93ba1a7937484884561451c130
This library provides the ThreadLocal
type which allow a separate copy of an object to be used for each thread. This allows for per-object thread-local storage, unlike the standard library's thread_local!
macro which only allows static thread-local storage.
Add this to your Cargo.toml
:
[dependencies] thread_local = "1.1"
This crate's minimum supported Rust version (MSRV) is 1.36.0.
Licensed under either of
at your option.
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.