commit | 14e961f3506c2c025d344c69f24766964244612e | [log] [tgz] |
---|---|---|
author | Android Build Role Account android-build-prod <android-build-team-robot@google.com> | Wed Apr 07 10:05:27 2021 +0000 |
committer | Android Build Role Account android-build-prod <android-build-team-robot@google.com> | Wed Apr 07 10:05:27 2021 +0000 |
tree | d8039a1ffb11378c74b2287a975c5dec58c4c672 | |
parent | ae4d263ca7df859462bc24b36fc85f7c9be9078b [diff] | |
parent | 17fe05da6e9bfa917c3eb2a38c872b0c474e9811 [diff] |
Snap for 7264743 from 17fe05da6e9bfa917c3eb2a38c872b0c474e9811 to s-keystone-qcom-release Change-Id: I10754ddc8ac0db890cc2375540d935af83e6de19
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.