commit | 2d820da3b361c612da2f1ee3164eaab23771a047 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Sun Feb 21 00:06:32 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sun Feb 21 00:06:32 2021 +0000 |
tree | d44255fadd7cd31117a35a02485877a5a63ceb6f | |
parent | 579325e1c6fec5060b6466e5a37ce2481bf8459d [diff] | |
parent | 8bab612c8aa06d1341917e006f61191b32a31a25 [diff] |
Snap for 7160059 from 8bab612c8aa06d1341917e006f61191b32a31a25 to sc-release Change-Id: If2d0cb7a178123805c831ff01abafd2c3169cf62
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.