commit | 05be871e4f8a757ecdbae5374332f2f405c2dd4f | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Tue Aug 24 20:20:56 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 24 20:20:56 2021 +0000 |
tree | 4ddc01f58a45aaef386e103b12029459d4cbd9f1 | |
parent | 5478c54f60b972f8741d43879efea760e97dfeaf [diff] | |
parent | 03145a72e401c6394537851756c04bafed4d3147 [diff] |
Update TEST_MAPPING am: 428a58c1f3 am: f91f6ac652 am: 32e333826c am: d72a626779 am: 03145a72e4 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/1806202 Change-Id: I3aa7222b0633c68f9a608135a90398002eabbf79
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.